Repository navigation
Releases
Releases · eugenepokalyuk/react-stateful-hooks
v0.2.1
Added
getColorSchemeScript— returns a blocking inline script that applies the saved (or system) color scheme to<html>before first paint, for flash-free dark mode. Reads fromlocalStorageor a cookie; targets a class or attribute.- A No-flash dark mode guide (English / Русский) with a live demo: https://eugenepokalyuk.github.io/react-stateful-hooks/en/guides/no-flash-dark-mode/
Fixed
- Docs: the
→arrow in the home-page hook cards now sits at the end of the row.
Full changelog: https://github.com/eugenepokalyuk/react-stateful-hooks/blob/main/CHANGELOG.md
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
v0.1.4
Added
- npm metadata:
repository,bugs, andhomepagefields. - Test coverage via
@vitest/coverage-v8(test:coveragescript, Codecov in CI). CONTRIBUTING.md, GitHub issue forms, and a pull-request template.- README: SSR-first positioning, badges, and a comparison table vs.
usehooks-tsandreact-use. - More discoverable npm keywords.
- Bilingual (English / Русский) documentation site with live demos and search, deployed to GitHub Pages: https://eugenepokalyuk.github.io/react-stateful-hooks/
Changed
homepagenow points to the documentation site.
Fixed
- Corrected the CI badge URL casing so it renders.
Full changelog: https://github.com/eugenepokalyuk/react-stateful-hooks/blob/main/CHANGELOG.md