remove commented hack (#4185)

This commit is contained in:
Jonathan Dobson
2025-12-03 17:12:51 -05:00
committed by GitHub
parent f754272f9c
commit a36ce0a7d1

View File

@@ -863,22 +863,6 @@ function FlowRenderer({
}
onNodesChange(changes);
// NOTE: should no longer be needed (woot!) - delete if true (want real-world testing first)
// // only allow one update in _this_ render cycle
// if (onNodesChangeTimeoutRef.current === null) {
// onNodesChange(changes);
// onNodesChangeTimeoutRef.current = setTimeout(() => {
// onNodesChangeTimeoutRef.current = null;
// }, 0);
// } else {
// // if we have an update in this render cycle already, then to
// // prevent max recursion errors, defer the update to next render
// // cycle
// nextTick().then(() => {
// onNodesChange(changes);
// });
// }
}}
onEdgesChange={onEdgesChange}
nodeTypes={nodeTypes}