How does Zustand works without Provider ? #3124
Unanswered
Mohitkumar6122
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the Zustand documentation, it mentions:
"Use the hook anywhere, no providers are needed."
I'm curious how this works under the hood.
Does Zustand store state in localStorage, the window object, or somewhere else to make it globally accessible?
If this involves any confidential implementation details, feel free to close the issue — but I’d really appreciate any insight you can share!
Beta Was this translation helpful? Give feedback.
All reactions