You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this is the place to submit issues regarding concurrent mode.
I don't know if this is a bug or intended behaviour, but I have a situation where the my react app behaves differently depending on the use of concurrent mode.
The behaviour on mobile Safari on iOS (12.1.2) is different whether using ReactDOM.render vs ReactDOM.createRoot. When ReactDOM.render is used, a tap results in an alert and after the alert is dismissed, the hover styles are applied. When using ReactDOM.createRoot, a tap results in the hover styles being applied. A second tap is needed to invoke the click handler.
(This double tap behaviour from iOS is described here)
Shouldn't the two render methods behave the same in this regard? or is this really intended behaviour?
BTW: A setTimout arround the mouseEnter event handler body does make ReactDOM.createRoot behave the same way as ReactDOM.render
Activity
gaearon commentedon Jan 23, 2019
I think maybe this check doesn't pass because
_reactRootContainerfield is only used byReactDOM.render:https://github.com/facebook/react/blob/db695c4d3265d34ead9467b8297e8237bccf2ad6/packages/react-dom/src/client/ReactDOMHostConfig.js#L381-L388
Check the parent fiber in appendChildToContainer
Check the parent fiber in appendChildToContainer
Detect React roots created by createRoot
gaearon commentedon Mar 24, 2021
I can't reproduce this anymore. Did iOS change something?
subhero24 commentedon Mar 25, 2021
I also can not reproduce this issue anymore. Guess an iOS update fixed it. Thanks for looking into it!