You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we are limited to React 16 which is limiting integration options with for example Studio. There are two things that need to be upgraded, react + webpack and react-flow-renderer (renamed to reactflow dependency).
Split the elements array into nodes and edges arrays and implement onNodesChange and onEdgesChange handlers (detailed guide in the core concepts section)
Memoize your custom nodeTypes and edgeTypes
Rename onLoad to onInit
Rename paneMoveable to panOnDrag
Rename useZoomPanHelper to useReactFlow (and setTransform to setViewport)
Reason/Context
Right now we are limited to React 16 which is limiting integration options with for example Studio. There are two things that need to be upgraded,
react
+webpack
andreact-flow-renderer
(renamed toreactflow
dependency).Breaking changes moving from v9 to v11:
v10 breaking changes:
v11 breaking changes:
reactflow
instead ofreact-flow-renderer
This probably also mean we have to upgrade webpack to the newest versions. Maybe we can follow something like https://medium.com/naukri-engineering/migrating-a-react-16-application-to-react-18-with-webpack-5-435d044b846
The text was updated successfully, but these errors were encountered: