Skip to content

Reactivity Failing in my Examples - Help needed #1620

Closed Answered by posva
cefn asked this question in Help and Questions
Discussion options

You must be logged in to vote

I would say the problem is that https://github.com/cefn/vitest-pinia-propagation/blob/43e8ab3/test/suite_unhappy.test.ts#L48 sets the state to null right away so I would say it's normal for tests to pass.
But these examples are getting hard to follow. I think you are almost there, if not, this could help: https://vuejs.org/api/reactivity-advanced.html#reactivity-api-advanced. Note that every pinia store is a reactive object itself and that the original refs of state are all stored at pinia.state.value[storeId].

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cefn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cefn
Comment options

@posva
Comment options

posva Sep 2, 2022
Maintainer

Answer selected by cefn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants