Best way for state rehydration #1946
Unanswered
rendomnet
asked this question in
Help and Questions
Replies: 1 comment 2 replies
-
If you want to avoid triggering reactivity, you shall replace the state before the stores are instantiated (aka the first time pinia.state.value = {
someStoreId: {...}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We need from time to time rehydrate(replace) our state. Because we can have several apps running in the separated context but they all needs to have same state.
We are recieving new state in json format.
What is a best way to replace current state with new one? So equal values in state would not trigger reactivity?
Beta Was this translation helpful? Give feedback.
All reactions