brocoders / redux-async-connect

It allows you to request async data, store them in redux state and connect them to your react component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server-side React render was discarded

shawnxusy opened this issue · 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!

commented

Experiencing the same issue here as well - undefined dest.firstChild.attributes['data-react-checksum']

commented

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?