Skip to content

Releases: HichemTab-tech/react-shared-states

1.0.4

25 Aug 00:27
a95a844

Choose a tag to compare

🚀 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 with scopeName.

  • 🔗 Cross-tree sharing – portals, modals, and microfrontends can sync seamlessly.

  • Shared async functionsuseSharedFunction provides single-flight execution, caching, loading/error states, and force-refresh.

  • 🛰️ Static APIssharedStatesApi & sharedFunctionsApi let 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 ❤️.