This whole approach should be based on complexity and how to fight it. State management is one axis of evil; it is difficult to keep simple.
There is an excellent paper about complexity in programs as the root of all evil, available for free: Out of the tarpit.
Immer will not get you very far against complexity as compared to Ramda or even ADT libraries like Crocks (crocks.dev/)
Also shout out for taking advantage of the ASI feature, those pesky semicolons...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This whole approach should be based on complexity and how to fight it. State management is one axis of evil; it is difficult to keep simple.
There is an excellent paper about complexity in programs as the root of all evil, available for free: Out of the tarpit.
Immer will not get you very far against complexity as compared to Ramda or even ADT libraries like Crocks (crocks.dev/)
Also shout out for taking advantage of the ASI feature, those pesky semicolons...