Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
promer94 committed Jun 3, 2023
1 parent 9d181d1 commit 5974c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ export const useSWRHandler = <Data = any, Error = any>(
promise.status = 'fulfilled'
promise.value = true
}
use(revalidate(WITH_DEDUPE))
use(promise as Promise<boolean>)
} else {
throw error
}
Expand Down

0 comments on commit 5974c36

Please sign in to comment.