ReactTraining / react-media

CSS media queries for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React strict mode

char0n opened this issue · comments

In Reacts strict mode, react-media is triggering following error when <MediaQuery> component is used.

Warning: Unsafe lifecycle methods were found within a strict-mode tree:
    in Provider (at index-bundle.js:131)

componentWillMount: Please update the following components to use componentDidMount instead: MediaQuery

Would it be possible to comply with the strict mode ?

Thank you

Hi @char0n,

#96 should fix this, you can expect it to be merged soon.