We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8114589 commit 42e7509Copy full SHA for 42e7509
1 file changed
examples/integrations/mcp-apps/app/components/threads-drawer/threads-drawer.tsx
@@ -120,11 +120,14 @@ export default function ThreadsDrawer({
120
>({});
121
122
useEffect(() => {
123
+ const entryTimeouts = entryTimeoutsRef.current;
124
+ const titleTimeouts = titleTimeoutsRef.current;
125
+
126
return () => {
- for (const timeoutId of entryTimeoutsRef.current.values()) {
127
+ for (const timeoutId of entryTimeouts.values()) {
128
window.clearTimeout(timeoutId);
129
}
- for (const timeoutId of titleTimeoutsRef.current.values()) {
130
+ for (const timeoutId of titleTimeouts.values()) {
131
132
133
};
0 commit comments