Releases: react-hookz/web
Releases · react-hookz/web
v14.0.0
14.0.0 (2022-05-11)
Bug Fixes
useMediatedState
: make initial state be passed through mediator (#753) (727d224)
BREAKING CHANGES
useMediatedState
: useMediatedState
now passes initial state through mediator
v13.2.1
13.2.1 (2022-04-10)
Bug Fixes
- make
useRerender
operate integer increment instead of bool switch (#711) (409a21f), closes #691
v13.1.0
13.1.0 (2022-03-14)
Features
- implement
useRafState
hook (6cd44ec)
- implement
useWindowSize
hook (81819cf)
v13.0.0
13.0.0 (2022-02-25)
Features
useMediaQuery
: add synchronous mql state fetch (0e0be56)
- implement new hook -
useScreenOrientation
(107cc21)
BREAKING CHANGES
useMediaQuery
: useMediaQuery
now does synchronous fetch, this means
that in browser it will return final state on first render, while SSR
mode still return undefined
.
SSR users should set second parameter of this hook to true
, to
postpone state fetch until effects phase.
v12.1.2
12.1.2 (2022-01-13)
Bug Fixes
- move to stricter linting configuration (#580) (f455992)
v12.1.1
12.1.1 (2022-01-11)
Bug Fixes
useLocalStorage
, useSessionStorage
: replace hook with noop in case of storage absence. (#540) (790b302), closes #521