HiDeoo / intro.js-react

Intro.js react wrapper
MIT License
407 stars 58 forks source link

onExit: The intro is exiting by itself #93

Closed TalalBhatti closed 1 year ago

TalalBhatti commented 1 year ago

Describe the bug

The application starts and just triggers the onExit function in the functional component. I have added a callback too but its still having the same issue.

To Reproduce

I can provide you the code

Expected behavior

onExit should be triggered when the callback is called. When the state is updated on the hard reload the intro works fine. I have removed and added callbacks to check the behavior.

How often does this bug happen?

Every time

System Info

No response

Additional Context

No response

HiDeoo commented 1 year ago

I can provide you the code

It would indeed be pretty neat to have a repro, if you could provide one on codesandbox.io for example as I'm not sure I really understand the issue.

TalalBhatti commented 1 year ago

https://javascript.plainenglish.io/react-js-onboarding-using-intro-js-4b03aa2f584e

Following this link. Whenever the app runs the tour gets closed by itself.

HiDeoo commented 1 year ago

javascript.plainenglish.io/react-js-onboarding-using-intro-js-4b03aa2f584e

I don't see any sandbox where I can see your code with the bug you are describing and play with it in this article, am I missing something?

If you don't know where to setup your repro and share your code, you can use codesandbox.io for example.

TalalBhatti commented 1 year ago

Okay I will attach the link by tomorrow

HiDeoo commented 1 year ago

Closing due to lack of activity.