@devries-cameron20 / t3code-1 / commits / 54b1915472
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

perf(web): the thread context drop hook compiles with the React Compiler (#20605)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 22:02 UTC 54b191547218b1e88754a0ea81976c7836873ba7
1 file changed +6 -1
apps/web/src/components/chat/threadContextDrag.ts
+6 -1
@@ -21,7 +21,12 @@ export function useThreadContextDrop(
21 active = false;
22 target.removeEventListener(THREAD_CONTEXT_DROP_EVENT, listener);
23 };
24 - }, [environmentId, targetKey, targetRef]);
24 + }, [
25 + // oxlint-disable-next-line react/exhaustive-effect-dependencies -- A new environment or target ends the previous listener, so isActive reports false to drops still in flight for it.
26 + environmentId,
27 + targetKey,
28 + targetRef,
29 + ]);
30 }
31
32 const DROP_TARGET_ATTRIBUTE = "data-thread-context-drop";