thearnica / react-media-match

React made responsible - media queries backed by state machinery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blacklist media branches

theKashey opened this issue · comments

In case of SSR, powered by a device detection and adaptive rendering (#11) it could be useful to blacklist impossible branches.

  • for real "mobile" devices desktop mode is not possible
  • for desktop devices any mode is possible
  • in case of any mistake with UA detection CSR would fix the problem

As a result we might ship less code for small devices.