Support server rendering
arunoda opened this issue · comments
Arunoda Susiripala commented
I'm not asking for Server Render support.
But when run inside such environments, try to work with them.
So, basically in the we should not run any logic.
Try to use componentDidMount here: https://github.com/xtuc/async-reactor/blob/master/src/index.js#L30
Or if not, run the logic only the app on the client, otherwise the Loading component.
Sven Sauleau commented
Yes, I used componentWillMount
on purpose. SSR was not my initial use-case but i'm totally open to that.
So thanks for this issue and your recommendation, I'll work on this.
Sven Sauleau commented
Arunoda Susiripala commented
@xtuc Superb. I hope I can close this now.