Skip to content

Does zustand Internally maintains mutable state? #2719

Answered by dai-shi
cobra0411 asked this question in Q&A
Discussion options

You must be logged in to vote

state objects are immutable, but the state itself is mutable internally. You can only update it with setState.

let state: TState

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cobra0411
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2718 on September 06, 2024 00:03.