Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
defer flow updates to next tick (#3211)
Jonathan Dobsone2a8f52464d2
diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsxindex 49c7ad4c5..9c6674ef5 100644--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx@@ -619,12 +619,13 @@ function FlowRenderer({) {workflowChangesStore.setHasChanges(true);}- // throttle onNodesChange to prevent cascading React updates+ // defer update to next tick to prevent max recursion errors;+ // NOTE: deferring too long causes node updates to be skippedif (onNodesChangeTimeoutRef.current === null) {onNodesChange(changes);onNodesChangeTimeoutRef.current = setTimeout(() => {onNodesChangeTimeoutRef.current = null;- }, 33); // ~30fps throttle+ }, 0);}}}onEdgesChange={onEdgesChange}