Server-side React render was discarded
shawnxusy opened this issue · 4 comments
Followed the setup and changed my existing code, got this error in console:
Server-side React render was discarded. Make sure that your initial render does not contain any client-side code.
It seems dest.firstChild.attributes['data-react-checksum'] is undefined, and I guess somewhere there is a mismatch between server / client rendering.
(I'm also using webpack isomorphic tools, i.e., )
Great work btw, this is definitely the cleanest approach to async loading!
Experiencing the same issue here as well - undefined dest.firstChild.attributes['data-react-checksum']
rc3 works no problem
For now I switched back to the fetchComponentDataBeforeRender approach (as in https://github.com/choonkending/react-webpack-node, app/api/fetch...). It's not as elegant as redux-async-connect, but works and I get to see what happens under the hood.
Any plan on fixing this issue soon?