Skip to content

How to access pinia state values in setup of another vue componet? #1340

Discussion options

You must be logged in to vote

The solution: If you want it to track values in the store then it has to be a computed value instead of a ref. const dataValues = computed(() => [chartData.SUV,4,5]) .

Replies: 2 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by Pepukayi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants