Closed simon360 closed 6 years ago
If rehydrate is called twice in quick succession, the calls to ReactDOM.render and ReactDOM.unmountComponentAtNode can conflict.
rehydrate
ReactDOM.render
ReactDOM.unmountComponentAtNode
Come up with a solution that ensures render always finishes before unmountComponentAtNode can get called again.
render
unmountComponentAtNode
Looks like this might not be a race condition, but is actually a problem with declaring a data-react-from-markup-container in JSX. It should be declared as innerHTML instead.
data-react-from-markup-container
innerHTML
If
rehydrate
is called twice in quick succession, the calls toReactDOM.render
andReactDOM.unmountComponentAtNode
can conflict.Come up with a solution that ensures
render
always finishes beforeunmountComponentAtNode
can get called again.