MCPcopy
hub / github.com/simstudioai/sim / useWorkflowMap

Function useWorkflowMap

apps/sim/hooks/queries/workflows.ts:130–140  ·  view source on GitHub ↗
(workspaceId?: string, options?: { scope?: WorkflowQueryScope })

Source from the content-addressed store, hash-verified

128 * with structural sharing — components only re-render when the record changes.
129 */
130export function useWorkflowMap(workspaceId?: string, options?: { scope?: WorkflowQueryScope }) {
131 const { scope = 'active' } = options || {}
132
133 return useQuery({
134 queryKey: workflowKeys.list(workspaceId, scope),
135 queryFn: workspaceId ? getWorkflowListQueryOptions(workspaceId, scope).queryFn : skipToken,
136 placeholderData: keepPreviousData,
137 staleTime: WORKFLOW_LIST_STALE_TIME,
138 select: selectWorkflowMap,
139 })
140}
141
142interface CreateWorkflowVariables {
143 workspaceId: string

Callers 12

LogsFunction · 0.90
useWorkflowOperationsFunction · 0.90
PreviewWorkflowFunction · 0.90
workflow.tsxFile · 0.90
WorkflowSearchReplaceFunction · 0.90
panel.tsxFile · 0.90
DeployModalFunction · 0.90
ApiInfoModalFunction · 0.90
EditorFunction · 0.90
ToolCredentialSelectorFunction · 0.90
workflow-block.tsxFile · 0.90
useExportFolderFunction · 0.90

Calls 1

Tested by

no test coverage detected