thearnica / react-media-match

React made responsible - media queries backed by state machinery
MIT License
130 stars 6 forks source link

fix:proper SSR integration #60

Closed theKashey closed 3 years ago

theKashey commented 3 years ago

Initial implementation of SSR was made for pre-hydrate era, where "update" of mismatched prediction was caused by flipping a key over rendered element. That was slow, inefficient and not very required.

codecov-commenter commented 3 years ago

Codecov Report

Merging #60 (b394213) into master (1e92a2f) will decrease coverage by 2.46%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #60      +/-   ##
==========================================
- Coverage   77.46%   75.00%   -2.47%     
==========================================
  Files           7        6       -1     
  Lines         213      208       -5     
  Branches       31       30       -1     
==========================================
- Hits          165      156       -9     
- Misses         44       48       +4     
  Partials        4        4              
Impacted Files Coverage Δ
src/createMediaMatcher.tsx 81.81% <100.00%> (+2.50%) :arrow_up:
src/utils.ts 62.31% <0.00%> (-10.15%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1e92a2f...b394213. Read the comment docs.