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(router): fix pushing basic stack #23833

Merged
merged 7 commits into from
Aug 9, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

There's an issue where moving from "a -> b" is considered siblings:

  • a. index (initialRouteName="index")
  • b. stack/index
    However, the preservation approach doesn't work because it would be moving to a route with the same name.
    The next check will see if the current focused route has the same name as the next route, if so, then fallback on the default React Navigation logic.

Test Plan

  • Added 2 new test cases.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Aug 6, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Aug 8, 2023
@EvanBacon EvanBacon merged commit 07b2b45 into main Aug 9, 2023
6 of 7 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/router/fix-pushing-basic-stack branch August 9, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants