gilbarbara / react-joyride

Create guided tours in your apps
https://react-joyride.com/
MIT License
6.88k stars 529 forks source link

Console warning - overlay not mounted? #397

Closed alondahari closed 5 years ago

alondahari commented 6 years ago

I'm getting this error in the console: index.js:2178 Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.

Please check the code for the Overlay component.

Expected behavior

I expect to not get the error... :)

React version: 16.0.0 React-Joyride version: 2.0.0-11

Error stack

image

If you are having UI issues, make sure to send a public URL or codesandbox example.

gilbarbara commented 6 years ago

Please post an example in codesandbox

codehtmai commented 6 years ago

I'm getting this also. It's worth noting that it only showed up after I switched Joyride to a controlled component.

SlowFamily commented 6 years ago

Getting duplicate error as well with 2.0.0-15. Only seems to occur for me in mobile when step event is "hover". Setting event to "click", which is the actual event with a touchscreen, seems to resolve the issue.