Skip to content

Commit

Permalink
add shouldSkipDeepLinkNavigation for web
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Mar 19, 2024
1 parent 34fa987 commit cecb40f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/libs/shouldSkipDeepLinkNavigation/index.web.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ROUTES from '@src/ROUTES';

export default function shouldSkipDeepLinkNavigation(route: string) {
// When deep-linking to desktop app with `transition` route we don't want to call navigate
// on the route because it will display an infinite loading indicator.
// See issue: https://github.com/Expensify/App/issues/33149
if (route.includes(ROUTES.TRANSITION_BETWEEN_APPS)) {
return true;
}

return false;
}

0 comments on commit cecb40f

Please sign in to comment.