r/reactjs • u/unadlib • Jul 16 '26
Coaction 3.0 — a Zustand-style store where React renders need no selectors, computed getters cache themselves, and actions can run in Web Workers
https://github.com/coactionjs/coaction
7
Upvotes
14
u/Thrimbor Jul 16 '26
The only thing I don't like about this (same with mobx) is the fact that I have to wrap my components in
observer(...)5
u/Cordes96 Jul 16 '26
Wouldn’t this just be a high-order component, which is what a lot of people try to avoid? It’s the reason a lot of people are up in arms about withForm by Tanstack being a HOC. It looks nice, but I feel like you are going to get a lot of people not liking the wrapping, just my thoughts.
3
u/Vincent_CWS Jul 17 '26
HOC? no thanks
3
u/sicmek Jul 18 '26
This is like the 5th "Zustand like store" I saw this month lol
1
u/official_marcoms Jul 16 '26
API looks a lot cleaner, I wonder why zustand didn’t offer something like this