Teague Stockwell 5c01189412
fix: useMedia SSR hydration bug with defaultState (#2216)
* fix: useMedia SSR hydration bug with defaultState

Prevent a React hydration mismatch when a default value is provided
by not defaulting to window.matchMedia(query).matches.

* Refactor nested ifs
2021-12-30 15:31:24 +01:00
..
2020-01-12 02:06:05 +05:30
2020-01-16 21:13:35 +05:30
2020-05-10 18:09:30 +02:00
2021-08-31 22:22:38 +01:00
2021-03-10 18:01:21 +03:00
2021-03-11 12:55:24 +03:00
2021-03-11 12:55:24 +03:00