Skip to content

[Question]Does recoil preserve immutability? #1733

Answered by drarmstr
monii asked this question in Q&A
Discussion options

You must be logged in to vote

Recoil does not deep copy state values. However, state values should be immutable and Recoil will actually deep freeze them in dev mode to catch issues. (Except with dangerouslyAllowMutability option)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by monii
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