How do I set 'run' to false after finishing demo? #791
-
Hi People, I'm maintaining a boolean react state to determine if the joyride should run or not. When the user travels through joyride and finally clicks on 'Last' button, which will close the joyride. But, the problem is, when the user re-visits the same page again, the joyride starts. How do I set 'run' to false when the user clicks on 'Last' button (programmatically) ? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
gilbarbara
Apr 5, 2022
Replies: 1 comment
-
hey @ajitesh-sivakumar You can set a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gilbarbara
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey @ajitesh-sivakumar
You can set a
callback
in the Joyride component and change your state when the tour ends.https://docs.react-joyride.com/props