You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a user of Pinia ORM with Nuxt (SSR) since a few years and I noticed a strange behavior from pinia-orm when used with Nuxt.
The bugs I tracked led me to the "hydratedDataCache" property in the Repositories/Queries which are used for caching hydrated models so that we don't need to hydrate it multiple times during rendering.
This cache variable is globally accessible: it's not a problem in client-side rendering but with Nuxt and the SSR, it means that this global hydration cache is shared in the whole process, so between all Nuxt requests.
I can take the time to reproduce my specific bug in an issue but before that I wanted to discuss if that was a known thing that Pinia-ORM caches were:
shared between all users/requests.
persisted in memory as long as the node process is running.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm a user of Pinia ORM with Nuxt (SSR) since a few years and I noticed a strange behavior from pinia-orm when used with Nuxt.
The bugs I tracked led me to the "hydratedDataCache" property in the Repositories/Queries which are used for caching hydrated models so that we don't need to hydrate it multiple times during rendering.
This cache variable is globally accessible: it's not a problem in client-side rendering but with Nuxt and the SSR, it means that this global hydration cache is shared in the whole process, so between all Nuxt requests.
I can take the time to reproduce my specific bug in an issue but before that I wanted to discuss if that was a known thing that Pinia-ORM caches were:
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions