0

I am using react-responsive-redux in which the whole Implementation of media queries is done based on a variable in state called fakeWidth . To get it working according to the docs we need to dispatch a redux action during request handler. In my project I do that in the serverEntry.js file, though the in built helper components of the module did not work because in my project I am using immutableJs.

So Now I am using selectors.js to get the fakeWidth that is present in the state.

This works well but the component in the media query component (that says Mobile device) does not show up in the first render of the app. I am not able to figure out why is that happening and what should I do to prevent that.

Mobile device is in MediaQuery component right now

Kunal arora
  • 167
  • 1
  • 2
  • 8
  • It would be a lot of work for an answerer to follow all your code links and review your full code base. You'll get better help if you break the problem down into a small sample app and post the actual code here. – stone Oct 06 '17 at 08:55
  • 1
    Okay thanks for the suggestion, It will take me sometime to do that. I am gonna work on that and let this be here. – Kunal arora Oct 06 '17 at 09:00

0 Answers0