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

Function useWebhookQuery

apps/sim/hooks/queries/webhooks.ts:43–50  ·  view source on GitHub ↗
(workflowId: string, blockId: string, enabled = true)

Source from the content-addressed store, hash-verified

41}
42
43export function useWebhookQuery(workflowId: string, blockId: string, enabled = true) {
44 return useQuery({
45 queryKey: webhookKeys.byBlock(workflowId, blockId),
46 queryFn: ({ signal }) => fetchWebhooks(workflowId, blockId, signal),
47 enabled: enabled && Boolean(workflowId && blockId),
48 staleTime: 60 * 1000,
49 })
50}
51
52interface ReactivateWebhookVariables {
53 webhookId: string

Callers 2

useWebhookInfoFunction · 0.90
useWebhookManagementFunction · 0.90

Calls 1

fetchWebhooksFunction · 0.85

Tested by

no test coverage detected