Skip to content
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

Issue with ReactDOM.hydrate and RNW 0.2.2 #745

Closed
leggomuhgreggo opened this issue Dec 29, 2017 · 1 comment
Closed

Issue with ReactDOM.hydrate and RNW 0.2.2 #745

leggomuhgreggo opened this issue Dec 29, 2017 · 1 comment

Comments

@leggomuhgreggo
Copy link

leggomuhgreggo commented Dec 29, 2017

I think there's a minor bug with hydrate and RWN 0.2.2

When developing (using CRA) the following error prints to the console:
Warning: Expected server HTML to contain a matching <div> in <div>.

Whipped up a reduced demo case here.

Looking into it I found a relevant issue created on the React repo, and a PR from the react-static repo that might serve as the basis for a solution.

Might be as simple as conditioning between hydrate and render based on whether HMR is being used in renderApplication.js

Thanks!

@clayrisser
Copy link

#918

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants