Memory usage problem in SSR when accessing getter #1020
Unanswered
jcfauchet
asked this question in
Help and Questions
Replies: 1 comment
-
Hi, As the store is re-create on each request on SSR, maybe a solution could be to not cache getters anymore on the server side ? ssr: make computed inactive during ssr, fix memory leak (https://github.com/vuejs/core/blob/main/CHANGELOG.md) Regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reproduction
https://github.com/xmimiex/vue3-ssr-template/tree/feat/pinia-reproduction-error
This simple exemple is accessing to a getter in SSR
Steps to reproduce the behavior
Follow the steps on the README
Expected behavior
Node memory should correctly regulate
Actual behavior
This getter seems to cause a memory leak.
For information, we also try a getter with parameter (without caching) and these one seems to not leak the memory.
If we remove this getter from Home.vue component, we can see the memory regulates as expected.
Beta Was this translation helpful? Give feedback.
All reactions