Repository navigation
Freeze Home tab in the background on web #104078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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'; | ||
|
|
@@ -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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @adhorodyski @nkdengineer is this fixed after your PR?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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); | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change causes the text style not to update when changing the theme. #105469