Skip to content

Getters are re-evaluated on every access #1823

Closed
@Fuzzyma

Description

@Fuzzyma

Version

4.0.0-beta.4

Reproduction link

https://codesandbox.io/s/hopeful-sanne-kv7r2?file=/src/main.js

Steps to reproduce

Open the link and open your console to see "recomputed getter" every second

What is expected?

"recomputed getter" should print once and never again

What is actually happening?

It prints every second


In vuex 3 getters were cached. Isn't that a thing anymore?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions