MCPcopy Index your code
hub / github.com/simstudioai/sim / handleDiffSettled

Function handleDiffSettled

apps/sim/hooks/use-collaborative-workflow.ts:841–849  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

839 }
840
841 const handleDiffSettled = async (event: Event) => {
842 const customEvent = event as CustomEvent<{ workflowId?: string }>
843 const workflowId = customEvent.detail?.workflowId
844 if (!workflowId || activeWorkflowId !== workflowId) return
845 const diffStore = useWorkflowDiffStore.getState()
846 if (!diffStore.pendingExternalUpdates[workflowId]) return
847
848 await replayPendingExternalUpdate(workflowId, 'deferred external update')
849 }
850
851 const handleWorkflowDeployed = (data: any) => {
852 const { workflowId } = data

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected