mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
perf(playground-ui): give React Flow stable handlers so a hover leaves other wrappers alone
The graph passed React Flow new inline handlers on every render, which re-renders every node and edge wrapper. They now read the latest props through a ref and keep their identity. The test fails on 043edecf7d (handler identity changes across a hover) and passes now.
Co-Authored-By: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
Co-Authored-By: Tyler Barnes <tylerdbarnes@gmail.com>
This commit is contained in:
parent
e3874fa829
commit
256aab44bf
3 changed files with 117 additions and 27 deletions
Loading…
Add table
Add a link
Reference in a new issue