Skip to content

Commit

Permalink
Merge pull request #38567 from software-mansion-labs/fix-infinite-spi…
Browse files Browse the repository at this point in the history
…nner-navigating-from-olddot

Fix infinite spinner in ND when navigating from OD
  • Loading branch information
mountiny authored Mar 19, 2024
2 parents 77d2868 + 0cbbf29 commit f135365
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 f135365

Please sign in to comment.