Composable returned refs are not reactive inside pinia store #2836
Answered
by
posva
saver711
asked this question in
Help and Questions
-
ReproductionSteps to reproduce the bugClick on increment xx Expected behaviorchanging xx from inside the composable 1 Actual behaviorchanging xx from inside the composable 1 Additional informationIam kinda new to Vue, if iam missing something here let me know plz |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Nov 15, 2024
Replies: 1 comment 2 replies
-
A composable allows to reuse logic across components (and stores in this case). You have two different |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
saver711
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A composable allows to reuse logic across components (and stores in this case). You have two different
xx
variables updating. Create a store instead of a composable if you want to share them