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
currently, we use window.requestAnimationFrame to postpone the operation, until the previous nodes are rendered. The correct way should be to change nodes and edges somehow and update the rendering. Also, it is good for undo/redo
Some are async, return promise or add callback to setNodes
The text was updated successfully, but these errors were encountered:
Max-ChenFei
changed the title
Merge the nodes and edges update for single operations
Merge the nodes and edges update for single operation
Jul 20, 2023
currently, we use
window.requestAnimationFrame
to postpone the operation, until the previous nodes are rendered. The correct way should be to changenodes
andedges
somehow and update the rendering. Also, it is good for undo/redoSome are async, return
promise
or add callback tosetNodes
https://stackoverflow.com/questions/34687091/can-i-execute-a-function-after-setstate-is-finished-updating
change to class component, add setStates once
The text was updated successfully, but these errors were encountered: