Pinia mirror changes from one store to another #1974
Unanswered
rendomnet
asked this question in
Help and Questions
Replies: 0 comments
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.
-
I have 2 stores that are located in different context and I want to mirror changes from one store in another.
For example using
store.$subscribe
callback I could send "changes" from this callback to another store and somehow load this changes?Before in
vuex
I had usedstore.subscribe
and sent mutation type too another store and it was working now in pinia we do not have "mutation types" we are mutating store directly.I dont want to replace whole store because that would trigger unnecessary computed properties. I'm trying to update only changed store properties.
Beta Was this translation helpful? Give feedback.
All reactions