Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(mobile): stop menu fault logging and whole-list re-renders on Home #24646

Mergedjuliusmarmingemerged 4 commits intomain fromrefs/pull/24646/headmerged by juliusmarminge View on GitHub

Showing 7 changed files with 33 additions and 95 deletions (loading 5).

x
0 of 7 viewed, 7 left
33 additions and 95 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -2,7 +2,6 @@
import { AppActivityIndicator } from "../../components/ui/AppActivityIndicator";
import { useAndroidControlSizing } from "../../components/ui/useAndroidControlSizing";
import type { ThreadMoveDestination } from "../threads/threadOrder";
-import { computeThreadMoveAvailability } from "../threads/threadOrder";
import type { LegendListRef } from "@legendapp/list/react-native";
import { AnimatedLegendList } from "@legendapp/list/reanimated";
import { THREAD_SIDEBAR_ROW_LAYOUT } from "../threads/threadListAnimations";
@@ -54,6 +53,7 @@
import { useThreadSearch } from "../../state/queries";
import { requestThreadMessageJump } from "../threads/threadMessageJump";
import { useThreadListSearchMatches } from "../threads/useThreadListSearchMatches";
+import { useThreadListV2 } from "../threads/useThreadListV2";
import { useThreadJumpShortcuts } from "../keyboard/threadKeyboardShortcuts";
import { usePendingThreadOrder } from "../../state/thread-order";
import { threadListEnvironmentsAtom } from "../../state/server";
@@ -71,11 +71,7 @@
import { useOpenThreadPullRequests } from "../threads/use-open-thread-pull-requests";
import type { ThreadPrPresentation } from "../../state/thread-pr-presentation";
import {
- buildThreadListV2Items,
- getThreadListV2OrderedSection,
- buildThreadListV2ListItems,
threadListV2ListItemsAreEqual,
- threadListInboxReturns,
THREAD_LIST_V2_SETTLED_INITIAL_COUNT,
THREAD_LIST_V2_SETTLED_PAGE_COUNT,
type ThreadListV2ListItem,