File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,4 +96,5 @@ export const REACT_COMPILED_FILES = [
9696 "apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx" ,
9797 "apps/web/src/components/ThreadTerminalDrawer.tsx" ,
9898 "apps/web/src/components/settings/SettingsPanels.tsx" ,
99+ "apps/web/src/lib/archivedThreadsState.ts" ,
99100] as const ;
Original file line number Diff line number Diff line change 55 makeArchivedThreadsEnvironmentKey ,
66} from "@t3tools/client-runtime/state/threads" ;
77import type { EnvironmentId } from "@t3tools/contracts" ;
8- import { useCallback , useMemo } from "react" ;
98
109import { orchestrationEnvironment } from "../state/orchestration" ;
1110import { appAtomRegistry } from "../rpc/atomRegistry" ;
@@ -32,16 +31,13 @@ export function useArchivedThreadSnapshots(environmentIds: ReadonlyArray<Environ
3231 readonly isLoading : boolean ;
3332 readonly refresh : ( ) => void ;
3433} {
35- const environmentKey = useMemo (
36- ( ) => makeArchivedThreadsEnvironmentKey ( environmentIds ) ,
37- [ environmentIds ] ,
38- ) ;
34+ const environmentKey = makeArchivedThreadsEnvironmentKey ( environmentIds ) ;
3935 const result = useAtomValue ( archivedSnapshotsAtom ( environmentKey ) ) ;
40- const refresh = useCallback ( ( ) => {
36+ const refresh = ( ) => {
4137 for ( const environmentId of environmentIds ) {
4238 appAtomRegistry . refresh ( archivedSnapshotAtom ( environmentId ) ) ;
4339 }
44- } , [ environmentIds ] ) ;
40+ } ;
4541
4642 return {
4743 ...result ,
You can’t perform that action at this time.
0 commit comments