Skip to content

Commit

Permalink
fix(use-swrv): do not await set timeout to execute (#336)
Browse files Browse the repository at this point in the history
Removing unneeded await from setTimeout call. Resolves #323.
  • Loading branch information
adamdehaven authored Jan 12, 2023
1 parent f504f33 commit 35ef66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-swrv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function useSWRV<Data = any, Error = any> (...args): IResponse<Data, Error> {
}

if (newData && config.revalidateDebounce) {
await setTimeout(async () => {
setTimeout(async () => {
if (!unmounted) {
await trigger()
}
Expand Down

0 comments on commit 35ef66b

Please sign in to comment.