Skip to content

The open alternative to Salesforce, designed for AI.

331 B
Raw Blame
const releaseCallbacks = new Set<(scopeId: string) => void>();

export const registerRoutedFlowStateScopeRelease = (
  callback: (scopeId: string) => void,
) => {
  releaseCallbacks.add(callback);
};

export const releaseRoutedFlowStateScope = (scopeId: string) => {
  releaseCallbacks.forEach((callback) => callback(scopeId));
};