Skip to content

Commit

Permalink
fix(useIntervalFn): unref interval (#1633)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxucode committed May 23, 2022
1 parent ebd60af commit 29fc50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/useIntervalFn/index.ts
Expand Up @@ -48,7 +48,7 @@ export function useIntervalFn(cb: Fn, interval: MaybeRef<number> = 1000, options
}

function resume() {
if (interval <= 0)
if (unref(interval) <= 0)
return
isActive.value = true
if (immediateCallback)
Expand Down

0 comments on commit 29fc50c

Please sign in to comment.