modosc/react-responsive-redux

update dependencies please

Closed this issue · 1 comments

Hi, can you please update react-responsive to 6 version ? In 6 version MediaQuery not wrap children with div. I try update this in my fork, but got

  console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `dispatch` is marked as required in `MediaQueryWrapper`, but its value is `undefined`.
          in MediaQueryWrapper
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `fakeWidth` is marked as required in `MediaQueryWrapper`, but its value is `undefined`.
          in MediaQueryWrapper



Could not find "store" in either the context or props of "Connect(MediaQueryWrapper)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(MediaQueryWrapper)".
Invariant Violation: Could not find "store" in either the context or props of "Connect(MediaQueryWrapper)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(MediaQueryWrapper)".

i not understand what's going wrong after update.

so react-responsive@6 broke support for SSR (at least, the way i'm doing it). see this issue for more info, but at this point the only workaround is to use my own fork of react-responsive which adds fragment support but doesn't change the ssr support