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

fix(provider): unregisterStep and reset canStart value #18

Merged
merged 2 commits into from
Oct 13, 2020

Conversation

cindmichelle
Copy link
Contributor

@cindmichelle cindmichelle commented Oct 7, 2020

  • fix unregisterStep logic in TourGuideProvider to prevent race condition when unmounting many steps simultaneously that could cause unregisterStep fails.

  • set canStart value to be false when there are no steps mounted/registered.

NOTE : this PR also made to fix issue #17 , allowing us to put <TourGuideZone/> in BottomTab of React Navigation and only show it when we want to show them (based on isTourGuide value in <TourGuideZone/> ).

@xcarpentier xcarpentier merged commit 4e25a7c into xcarpentier:master Oct 13, 2020
@ThallyssonKlein
Copy link

How does this pull request resolve issue #17?

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

Successfully merging this pull request may close these issues.

3 participants