TypeScript
perf(web): the thread context drop hook compiles with the React Compiler (#20605)
Julius Marminge54b191547218
diff --git a/apps/web/src/components/chat/threadContextDrag.ts b/apps/web/src/components/chat/threadContextDrag.tsindex 549aa4ab2f3..040e5a920e2 100644--- a/apps/web/src/components/chat/threadContextDrag.ts+++ b/apps/web/src/components/chat/threadContextDrag.ts@@ -21,7 +21,12 @@ export function useThreadContextDrop(active = false;target.removeEventListener(THREAD_CONTEXT_DROP_EVENT, listener);};- }, [environmentId, targetKey, targetRef]);+ }, [+ // 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.+ environmentId,+ targetKey,+ targetRef,+ ]);}const DROP_TARGET_ATTRIBUTE = "data-thread-context-drop";