Detect breakpoint using matchMedia on initial render and not in effect
Closed this issue · 0 comments
michalkvasnicak commented
Basically we want to detect current breakpoint sooner than useEffect
but we want to unregister listeners on unmount.
Closed this issue · 0 comments
Basically we want to detect current breakpoint sooner than useEffect
but we want to unregister listeners on unmount.