Releases: HichemTab-tech/react-shared-states
1.0.4
🚀 v1.0.4 - First Release of react-shared-states
Highlights
-
🎉 Initial stable release : lightweight, ergonomic state & async sharing for React.
-
⚛️ Global by default : share state instantly without providers:
const [count, set] = useSharedState("counter", 0);
-
🌀 Scoped states – isolate with
SharedStatesProvider, or sync across trees withscopeName. -
🔗 Cross-tree sharing – portals, modals, and microfrontends can sync seamlessly.
-
⚡ Shared async functions –
useSharedFunctionprovides single-flight execution, caching, loading/error states, and force-refresh. -
🛰️ Static APIs –
sharedStatesApi&sharedFunctionsApilet you prime, read, and mutate outside React (SSR, tests, devtools). -
🧪 Test-friendly – clear/reset state easily in test suites.
-
📦 Works with Vite & Webpack – no config required.
Motivation
We built react-shared-states to make global and scoped state sharing as simple as useState while removing the boilerplate of Redux and the config of Zustand. Async data handling is a first-class citizen, not an afterthought.
Thanks
Big thanks to early adopters and contributors who helped refine the API and push this first version out the door ❤️.