Repository navigation
v0.2.0
Added
useHydrated— returnsfalseon the server and the first client render, thentrueafter hydration, with no mismatch (built onuseSyncExternalStore).useCookieState—useStatepersisted todocument.cookie, with aserverValueoption for flash-free SSR, cookie attributes, a custom serializer, and same-tab sync.- Documentation pages with live demos for both hooks (English / Русский): https://eugenepokalyuk.github.io/react-stateful-hooks/
Bundle stays tiny (~2.6 kB gzipped, tree-shakeable).
Full changelog: https://github.com/eugenepokalyuk/react-stateful-hooks/blob/main/CHANGELOG.md