Releases: goodnight-dev/react-hooks
Releases · goodnight-dev/react-hooks
Release list
@goodnight-dev/react-hooks@0.3.0
Immutable
release. Only release title and notes can be modified.
Minor Changes
- 1e2c3c7: Add
useWindowSize, auseSyncExternalStore-backed hook that reads
the viewport'swidthandheightand stays in sync on resize. Each
dimension isnumber | undefined—undefinedon the server and until the
client's first measurement — so consumers can destructure immediately and only
branch on the unknown state where it matters.
Patch Changes
- 7b85d35:
ThemePreference's members are nowreadonly, anduseTheme
returnsReadonly<ThemePreference>. The returned object was never meant to be
mutated in place; the types now say so. No runtime behavior changes.
@goodnight-dev/react-hooks@0.2.0
Minor Changes
- 9851577: Add
useLocalStorage, auseSyncExternalStore-backed hook for
reading and writing a JSON-serializable value inlocalStorage, staying in
sync across tabs.
@goodnight-dev/react-hooks@0.1.0
Minor Changes
- be1960a: Initial bootstrapping and publishing flow, with
useTheme.