Is it possible to use local prefetched reactive variables and deal with their initial state without Pinia? #364
Unanswered
the-illarionov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this page component:
The problem is when i open the page,
src
equals to "" (but in the source code i have right img src attribute prerendered on the server). It felt awkward, but then i understood, that it is totally logical, because after hydrationsrc
is blank and it rewrites the one that was in the source code.In the documentation is said that i need to deal with initial state and Pinia. And it works.
But my question is: do i really need Pinia for that? Is there any way how to deal with that local reactive variables without Pinia? Because Pinia is singletone, i don't feel comfortable polluting it with such kind of variables.
Beta Was this translation helpful? Give feedback.
All reactions