Thanks Burak so much for the discovery.
Since I discovered redux, I did not have found it hard to find another state management library as simple and useful. Basically, I have been building apps for years and years, and Redux solved so many problems, that I cannot describe here.
But Zustand looked really nice, and powerful. You do not need middleware, but you can have middleware. Some positive things:
* It does not require React
* It allows selectors and selectors optimizations
* It connects with redux devtools!!
There is only one thing that I miss, and maybe it is available: interconnection between stores.
Why:
* Each store should be atomic, and small, so it is easy to maintain
* Data should not be replicated, but often some kind of synchronization is needed
I often use the Aggregate pattern approach from the Domain Driven Design to solve this synchronization. But I do not know how to do that with Zustand..., yet.
It looks really promising!
Thanks again!