Skip to content

Commit

Permalink
fix(useTimeoutPoll): unexpected immediate execution (#3159)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiadesen committed Jun 28, 2023
1 parent 56804b9 commit 7a897e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useTimeoutPoll/index.ts
Expand Up @@ -3,7 +3,7 @@ import type { Awaitable, MaybeRefOrGetter, Pausable, UseTimeoutFnOptions } from
import { tryOnScopeDispose, useTimeoutFn } from '@vueuse/shared'

export function useTimeoutPoll(fn: () => Awaitable<void>, interval: MaybeRefOrGetter<number>, timeoutPollOptions?: UseTimeoutFnOptions): Pausable {
const { start } = useTimeoutFn(loop, interval)
const { start } = useTimeoutFn(loop, interval, { immediate: false })

const isActive = ref(false)

Expand Down

0 comments on commit 7a897e5

Please sign in to comment.