Frequently Asked Questions
Q: How does Immer work?β
Read the (second part of the) introduction blog.
Q: Does Immer use structural sharing? So that my selectors can be memoized and such?β
A: Yes
Q: Does Immer support deep updates?β
A: Yes
Q: I can't rely on Proxies being present on my target environments. Can I use Immer?β
A: Yes - view details
Q: Can I typecheck my data structures when using Immer?β
A: Yes
Q: Can I store Date
objects, functions etc in my state tree when using Immer?β
A: Yes
Q: Can I use Maps and Sets?β
A: Yes
Q: Is it fast?β
A: Yes
Q: Idea! Can Immer freeze the state for me?β
A: Yes