Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/libs/Navigation/AppNavigator/Navigators/TabNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {bottomTabScreenLayoutWrapper} from '@libs/Navigation/PlatformStackNaviga
import type {TabNavigatorParamList} from '@libs/Navigation/types';
import {getSpan} from '@libs/telemetry/activeSpans';

import FreezeWrapper from '@navigation/AppNavigator/FreezeWrapper';

import CONST from '@src/CONST';
import NAVIGATORS from '@src/NAVIGATORS';
import SCREENS from '@src/SCREENS';
Expand Down Expand Up @@ -66,7 +68,16 @@ function withSuspense<P extends Record<string, unknown>>(LazyComponent: React.La
return SuspenseWrapper;
}

const HomePageScreen = withSuspense(LazyHomePage);
const HomePageWithSuspense = withSuspense(LazyHomePage);

// Outside the Suspense so the lazy chunk load still shows LazyFallback instead of suspending into Freeze.
function HomePageScreen() {
return (
<FreezeWrapper>
<HomePageWithSuspense />
</FreezeWrapper>
Comment on lines +76 to +78

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR caused regression:

Bug: Web - Home - Empty state text keeps old theme color after theme switch

Image
Screen.Recording.2026-10-29.at.2.40.33.PM.mov

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @adhorodyski

@nkdengineer is this fixed after your PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok this is fixed

);
}
const ReportsSplitNavigatorScreen = withSuspense(LazyReportsSplitNavigator, CONST.TELEMETRY.SPAN_NAVIGATE_TO_INBOX_TAB);
const SettingsSplitNavigatorScreen = withSuspense(LazySettingsSplitNavigator);
const WorkspaceNavigatorScreen = withSuspense(LazyWorkspaceNavigator);
Expand Down
Loading