react-responsive-redux icon indicating copy to clipboard operation
react-responsive-redux copied to clipboard

Warning after upgrading to React v.16.9.0

Open itsnorbertkalacska opened this issue 6 years ago • 0 comments
trafficstars

Hey!

It's me again 😁

So we're still using your package. And recently we upgraded react and react-dom to v16.9.0. After the upgrade we're receiving the following warning: 62850010-f07e8e00-bce1-11e9-9512-a7269d012bca

We know you haven't upgraded react-responsive because of this issue: https://github.com/modosc/react-responsive-redux/issues/9

However we would like to get rid of the warning. Do you think we can find a solution?

We found a not really nice workaround this:

const ResponsiveUglyWorkAround = (props) => (
    <React.Fragment>
        <br style={{ display: 'none' }} />
        <MediaQuery {...props} />
        <br style={{ display: 'none' }} />
    </React.Fragment>
);

as explained here: https://github.com/contra/react-responsive/issues/162#issuecomment-407775296

What do you think?

itsnorbertkalacska avatar Sep 05 '19 17:09 itsnorbertkalacska