David Rodenas PhD
1 min readJul 28, 2022

--

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!

--

--

David Rodenas PhD
David Rodenas PhD

Written by David Rodenas PhD

Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.

No responses yet