Skip to content

Commit f0259c7

Browse files
benthecoderclaude
andcommitted
Fix UMAP visualization hanging on search
Fixed bug where searching caused canvas to hang and hover to stop working. The zoom behavior was re-initializing every time the filtered results changed, destroying the interaction state. Changed zoom useEffect dependency from [filtered] to [] so it only initializes once on mount. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 611d348 commit f0259c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/KnowledgeMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export default function KnowledgeMap({
225225
selection.on(".zoom", null);
226226
canvas.removeEventListener("wheel", preventScroll);
227227
};
228-
}, [filtered]);
228+
}, []);
229229

230230
// Mouse hover
231231
const handleMouseMove = useCallback(

0 commit comments

Comments
 (0)