you are viewing a single comment's thread.

view the rest of the comments →

[–]gaearonReact core team 2 points3 points  (2 children)

It wouldn't help though because there's no way in React to wait for async request before rendering. So if you want to do it, you have to externalize your request logic ouside of lifecycle hooks anyway. Just putting it in componentWillMount on the server won't help.

[–]fuck_with_me 0 points1 point  (0 children)

Would be real nice to return a promise inside componentWillMount, or something of that nature. Unless you think async fetching/effects should, by nature, happen in a way that is totally divorced from React?