Allow private state in Pinia stores #2789
Replies: 1 comment
-
Duplicate of #2756 |
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
-
As changing state from outside is considered a bad practice, why does Pinia allow accessing and modifying state from outside? Is there a solution to make state private and inaccessible from outside?
I'm using TypeScript and it's crucial for me to preserve its features.
Example code:
Beta Was this translation helpful? Give feedback.
All reactions