Skip to content

Commit

Permalink
fix: Change navigating condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMuzyk committed Jun 19, 2024
1 parent e0ff35b commit d9c660c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/Navigation/AppNavigator/getPartialStateDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function getPartialStateDiff(state: State<RootStackParamList>, templateState: St
(!stateTopmostFullScreen && templateStateTopmostFullScreen) ||
(stateTopmostFullScreen &&
templateStateTopmostFullScreen &&
stateTopmostFullScreen.name !== templateStateTopmostFullScreen.name &&
!shallowCompare(stateTopmostFullScreen.params as Record<string, unknown> | undefined, templateStateTopmostFullScreen.params as Record<string, unknown> | undefined))
(stateTopmostFullScreen.name !== templateStateTopmostFullScreen.name ||
!shallowCompare(stateTopmostFullScreen.params as Record<string, unknown> | undefined, templateStateTopmostFullScreen.params as Record<string, unknown> | undefined)))
) {
diff[NAVIGATORS.FULL_SCREEN_NAVIGATOR] = fullScreenDiff;
}
Expand Down

0 comments on commit d9c660c

Please sign in to comment.