-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getters are re-evaluated on every access #1823
Comments
I am also facing this issue. After migrating to Vuex 4.0.0-beta.4 my getters get re-evaluated everytime they are accessed. This has slowed down my application a lot, as my application logic relies on the fact that getters are cached. |
I am still experiencing this issue. Is it really fixed? |
I see, thanks! At least I'm happy to see that it is clear what the issue is. |
@kiaking Hey! Any news about this? Vue 3.1 has officially released and I'm still experiencing this issue. |
Interested in the follow-up as well. Vue 3 is basically unusable for me with this bug. |
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?
The text was updated successfully, but these errors were encountered: