Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): stop loading thread families when opening chats #26762

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/26762/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 9 changed files with 2 additions and 27 deletions (loading 6).

x
0 of 9 viewed, 9 left
1 addition and 7 deletionsapps/mobile/src/features/threads/ThreadRouteScreen.tsxModified
View file
@@ -80,7 +80,7 @@
import { useThreadComposerState } from "../../state/use-thread-composer-state";
import { resolveMergeBackTargetThreadId } from "@t3tools/client-runtime/state/thread-relationships";
import { resolveLatestMergeBackRun } from "@t3tools/client-runtime/state/thread-workflows";
-import { threadEnvironment, useThreadFamily } from "../../state/threads";
+import { threadEnvironment } from "../../state/threads";
import { EMPTY_ENVIRONMENT_THREAD_STATE } from "@t3tools/client-runtime/state/threads";
import { useProjects } from "../../state/entities";
import { projectThreadContentPresentation } from "./threadContentPresentation";
@@ -243,12 +243,6 @@
const connectionsReady = useConnectionsReady();
const { connectionState } = useRemoteConnectionStatus();
const { selectedThread } = useThreadSelection();
- // Subagent rows, the open child's own row and its ancestors come from the family when the
- // shell leaves idle children out.
- useThreadFamily(
- selectedThread?.environmentId ?? null,
- selectedThread?.lineage.rootThreadId ?? null,
- );
const params = props.route.params ?? {};
const environmentIdRaw = firstRouteParam(params.environmentId);
const threadIdRaw = firstRouteParam(params.threadId);
0 additions and 13 deletionsapps/mobile/src/state/threads.tsModified
View file
@@ -11,7 +11,6 @@
} from "@t3tools/client-runtime/state/threads";
import type { EnvironmentId, ThreadId } from "@t3tools/contracts";