Why is it bad to use JS module variables as stores? #6505
Unanswered
0x00A1FA
asked this question in
Help/Questions
Replies: 1 comment
-
Where do you see it being discouraged? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear devs,
I know you can use module variables (e.g.:
const store = ref({ count: 1 });
), but I know it is discouraged, although never explained why. Can someone shed some light on this issue?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions