Skip to content

Commit

Permalink
Revert "add shouldSkipDeepLinkNavigation for all platforms"
Browse files Browse the repository at this point in the history
This reverts commit 7488983.
  • Loading branch information
adamgrzybowski committed Mar 19, 2024
1 parent 7488983 commit 0cbbf29
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
File renamed without changes.
5 changes: 5 additions & 0 deletions src/libs/shouldSkipDeepLinkNavigation/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export default function shouldSkipDeepLinkNavigation(route: string) {
// no-op for all other platforms
return false;
}
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 0cbbf29

Please sign in to comment.