Skip to content

Commit ae86bcb

Browse files
authored
Merge pull request Expensify#74108 from software-mansion-labs/feature/kuba-nowakowski/preload_reports_v2
Make Switching to the Search Page Faster
2 parents dc0e6e0 + 259c295 commit ae86bcb

3 files changed

Lines changed: 341 additions & 259 deletions

File tree

src/libs/Navigation/AppNavigator/usePreloadFullScreenNavigators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import {getPreservedNavigatorState} from './createSplitNavigator/usePreserveNavi
2424
// This timing is used to call the preload function after a tab change, when the initial tab screen has already been rendered.
2525
const TIMING_TO_CALL_PRELOAD = 1000;
2626

27-
// Currently, only the Account and Workspaces tabs are preloaded. The remaining tabs will be supported soon.
28-
const TABS_TO_PRELOAD = [NAVIGATION_TABS.SETTINGS, NAVIGATION_TABS.WORKSPACES];
27+
// Currently, only the Workspaces, Account tabs are preloaded. The remaining tabs will be supported soon.
28+
const TABS_TO_PRELOAD = [NAVIGATION_TABS.WORKSPACES, NAVIGATION_TABS.SETTINGS];
2929

3030
function preloadWorkspacesTab(navigation: PlatformStackNavigationProp<AuthScreensParamList>) {
3131
const state = getWorkspacesTabStateFromSessionStorage() ?? navigation.getState();

0 commit comments

Comments
 (0)