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

Function isLatestReload

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

Source from the content-addressed store, hash-verified

610 const reloadSequence = (reloadSequencesRef.current[workflowId] ?? 0) + 1
611 reloadSequencesRef.current[workflowId] = reloadSequence
612 const isLatestReload = () => reloadSequencesRef.current[workflowId] === reloadSequence
613 const pendingExternalUpdateAtStart =
614 useWorkflowDiffStore.getState().pendingExternalUpdates[workflowId] ?? 0
615 useWorkflowDiffStore.getState().setWorkflowReconciliationInProgress(workflowId, true)

Callers 2

failLatestReconciliationFunction · 0.85
reloadWorkflowFromApiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected