mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 20:08:14 +00:00
dfab71492c
Hover state fed the nodes/edges useMemos, so every hover recreated both arrays — React Flow re-measured the dimensionless nodes and the hovered node's scale transform shifted it out from under the pointer, causing a rapid dark↔light flicker. Drive hover focus through React context instead so the nodes/edges props stay referentially stable (custom memoized node + edge read the hovered id), and drop the scale transform. Theme the React Flow controls via colorMode from next-themes so the zoom box matches the active theme instead of rendering white. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>