Understanding Zustand and Immer

So, I’ve previously written about Zustand before, and implemented it with Immer to get and set simple states, but I realized my understanding of it is not deep enough for me to implement cases where I need to set nested states. The purpose of this little write up is to figure out what exactly is going on with Zustand and Immer, so that I can achieve my goals. Understanding Zustand Using Zustand is simple. All you need to do is to create a store ...

January 10, 2023 · 7 min · Lei

Recently Discovered Zustand

So whilst wiring up my the frontend CRUD buttons to the backend routes in this project that I am currently working on, I realized I needed to implement a simple flux architecture to manage global state. However, I haven’t used Redux in a while, and based on my experience, setting up reducers, and their various dispatch statements, was rather tedious, especially for a small project, so I decided to google what alternatives to Redux was there. ...

January 8, 2023 · 4 min · Lei