-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Objects are not valid as a React child
after upgrading react-stand-in
from 4.0.0-beta.13
#832
Comments
Strange. I know the source of error, but it should not happens. |
This is not RHL's bug, this is bug from |
Closing this issue for now. Sorry, but there is no way to use a current version of react-hot-loader with a current version of react-async-component. |
@theKashey, the error is here: https://github.com/ctrlplusb/react-tree-walker/blob/master/src/index.js#L78 It uses react Children API. So It can not determine, that this is a react element and tries to proceed with iteration, which is not possible. Or do you mean, that |
@SleepWalker - the problem is simple - we are returning an instance from functional stateless component to work out Relay(it will also break async-loader) - see #775 We tried to solve this in #833, but decided not to solve it in that way. It is better to fix tree-walker, and I've raised an issue for it. It is literally one line code change. |
Thank you for detailed info @theKashey! |
Moved from theKashey/react-stand-in#2
Description
What you are reporting: Bug
Expected behavior
What you think should happen: do not throw error
Actual behavior
What actually happens:
Environment
React Hot Loader version: 4.0.0-beta.18
react-stand-in version: >= 4.0.0-beta.14
Run these commands in the project folder and fill in their results:
node -v
: v9.4.0npm -v
: 5.6.0Then, specify:
Reproducible Demo
https://github.com/JounQin/react-ssr/tree/react-stand-in
Branch: react-stand-in
For now, I'm locking [email protected], you can remove resolutions in package.json and run yarn && yarn dev, then visit http://localhost:4000.
The text was updated successfully, but these errors were encountered: