xyflow / xyflow

React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
https://xyflow.com
MIT License
22.07k stars 1.46k forks source link

[React] Fix: type `updateNodeData` dataUpdate arg #4278

Closed ogroppo closed 2 weeks ago

ogroppo commented 1 month ago

This was resulting in any object allowed as argument of updateNodeData, the fallback should still be object if generic is not passed to useReactFlow

Screenshot 2024-05-14 at 20 35 15
moklick commented 2 weeks ago

Thanks @ogroppo