3 ms·
I decided that this was what I would do on my most recent work project. My quest to reduce the number of libraries it depends on led me to deciding against Imme
by pseudoramble 4y ago
I decided that this was what I would do on my most recent work project. My quest to reduce the number of libraries it depends on led me to deciding against Immer or something like it.
It works out cause I only use state of this complexity in a single spot. The code to do the copying does not read well in my opinion, and it definitely could get nasty in some cases (slower systems with updates on each keystroke say).
A library like Immer seems very reasonable if you are working on big nested structures often. Worth considering depending on the case.