diff --git a/src/compositions/useFlowRun.ts b/src/compositions/useFlowRun.ts index bdea48412..8cb579571 100644 --- a/src/compositions/useFlowRun.ts +++ b/src/compositions/useFlowRun.ts @@ -1,4 +1,4 @@ -import { useSubscriptionWithDependencies } from '@prefecthq/vue-compositions' +import { SubscriptionOptions, useSubscriptionWithDependencies } from '@prefecthq/vue-compositions' import { computed, Ref, ref, watch } from 'vue' import { useCan } from '@/compositions/useCan' import { useWorkspaceApi } from '@/compositions/useWorkspaceApi' @@ -8,7 +8,7 @@ import { UseEntitySubscription } from '@/types/useEntitySubscription' export type UseFlowRun = UseEntitySubscription -export function useFlowRun(flowRunId: string | Ref): UseFlowRun { +export function useFlowRun(flowRunId: string | Ref, options?: SubscriptionOptions): UseFlowRun { const api = useWorkspaceApi() const can = useCan() const id = ref(flowRunId) @@ -25,7 +25,7 @@ export function useFlowRun(flowRunId: string | Ref): return [id.value] }) - const subscription = useSubscriptionWithDependencies(api.flowRuns.getFlowRun, parameters) + const subscription = useSubscriptionWithDependencies(api.flowRuns.getFlowRun, parameters, options) const storage = useFlowRunStorage()