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
Caching getters on server with Nuxt2 is not working as expected #2529
Comments
@posva Hey thanks for adding labels, from what I can tell this appears to be an issue with |
it appears that the issue is here packages/pinia/src/store.ts#L179C19-L179C19 the computed is getting re-evaluated multiple times even though the dependencies aren't changing. I did come across this discussion that I am unsure if it is relevant or not #1020 and he references
from the vue 3.2.27 CHANGELOG |
@posva seems like the "issue" I mention here is actually the intended functionality based on responses to |
Reproduction
https://github.com/yoshrubin/pinia-ssr-bug
Steps to reproduce the bug
yarn build && yarn start
Expected behavior
To return a cached version of the getter
Actual behavior
the
getter
was called for each loop in thev-for
loop instead of returning a cached versionAdditional information
The issue is for Nuxt2 with
@pinia/[email protected]
which usespinia@^2.1.7
The text was updated successfully, but these errors were encountered: