-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "add shouldSkipDeepLinkNavigation for all platforms"
This reverts commit 7488983.
- Loading branch information
1 parent
7488983
commit 0cbbf29
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |