Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tours with different onClickClose and onClickMask #640

Open
Niesyto opened this issue Jul 23, 2024 · 1 comment
Open

Multiple tours with different onClickClose and onClickMask #640

Niesyto opened this issue Jul 23, 2024 · 1 comment

Comments

@Niesyto
Copy link

Niesyto commented Jul 23, 2024

I have a single TourProvider and multiple sets of steps inside it, i display them depending on route. I would like to store the information if the Tour was already viewed in the localstorage, but I need it to be separate for all sets of steps. Is there a way of achieving it? I can't get useTour to override the onClickClose behaviour.

Example
See the link for example. Page1 and Page2 both have some sets of steps,

@nikischin
Copy link

It would be cool to be able to use multiple tours like this useTour('introduction'); or useTour('some-area'); or useTour('another-area');.

I understand that this is possible by setting the steps, but it doesn't seem to straightforward as it would require some useEffects which could be avoided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants