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

Function invalidateDeploymentQueries

apps/sim/hooks/queries/deployments.ts:57–64  ·  view source on GitHub ↗
(queryClient: QueryClient, workflowId: string)

Source from the content-addressed store, hash-verified

55 * Used by mutation onSuccess callbacks and manual invalidation after chat deployments.
56 */
57export function invalidateDeploymentQueries(queryClient: QueryClient, workflowId: string) {
58 return Promise.all([
59 queryClient.invalidateQueries({ queryKey: deploymentKeys.info(workflowId) }),
60 queryClient.invalidateQueries({ queryKey: deploymentKeys.deployedState(workflowId) }),
61 queryClient.invalidateQueries({ queryKey: deploymentKeys.versions(workflowId) }),
62 queryClient.invalidateQueries({ queryKey: deploymentKeys.chatStatus(workflowId) }),
63 ])
64}
65
66export async function refetchDeploymentBoundary(queryClient: QueryClient, workflowId: string) {
67 await invalidateDeploymentQueries(queryClient, workflowId)

Callers 7

handleChatDeployedFunction · 0.90
handleWorkflowDeployedFunction · 0.90
useDeployWorkflowFunction · 0.85
useUndeployWorkflowFunction · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected