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

UseIsFocused wrong value after resetRoot() #6681

Closed
Titozzz opened this issue Nov 25, 2019 · 1 comment · Fixed by react-navigation/navigation-ex#189
Closed

UseIsFocused wrong value after resetRoot() #6681

Titozzz opened this issue Nov 25, 2019 · 1 comment · Fixed by react-navigation/navigation-ex#189

Comments

@Titozzz
Copy link
Contributor

Titozzz commented Nov 25, 2019

Current Behavior

https://github.com/Titozzz/rn5-issues/tree/bug-focus

Running this code, when moving from tab2 to stack2 using resetRoot(), useIsFocused() has the wrong value for tab1 and stack2.
I've added logs to the demo above 🚀!

Expected Behavior

useIsFocused() should stay in sync with the navigation state
Thanks 😄

@meftunca
Copy link

meftunca commented Nov 27, 2019

TypeError: navigation.resetRoot is not a function

I get this error. What do you think might be the cause of this problem? I get this error when using "DeepLinking".

satya164 referenced this issue in react-navigation/navigation-ex Nov 29, 2019
@satya164 satya164 transferred this issue from react-navigation/navigation-ex Feb 7, 2020
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 a pull request may close this issue.

2 participants