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

Fast switching between tab bars causing creating new tab instead of restoring previous one #1285

Closed
mkowol-n opened this issue Mar 14, 2024 · 5 comments

Comments

@mkowol-n
Copy link

Hi,
I found a bug related to navigation. I have an application with bottom nav bar. When i navigate between them using :
navigator.resetRoot(HomeNavTab2, saveState = true, restoreState = true)
everything works fine - the state of each tab is being restored. However, when I rapidly switch between the tabs (akin to "spamming"), the expected state restoration does not occur. Instead, a new screen is generated each time."

@ZacSweers
Copy link
Collaborator

Can you link a sample we could reproduce this on? A test would be ideal but even just a sample app that we could manually try. Otherwise there's not much for us to go on here

@mkowol-n
Copy link
Author

mkowol-n commented Mar 14, 2024

@ZacSweers sure, here is the repo:
https://github.com/mkowol-n/SlackNavIssue

@mkowol-n
Copy link
Author

@ZacSweers
Copy link
Collaborator

Is this possibly related to #1312? i.e. debouncing issues

@ZacSweers
Copy link
Collaborator

Closing as fixed in 0.21.0

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