@react-hookz/web
Advanced tools
Changelog
13.0.0 (2022-02-25)
useMediaQuery
: add synchronous mql state fetch (0e0be56)useScreenOrientation
(107cc21)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.