Skip to content

Commit

Permalink
disable ts assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Sep 27, 2021
1 parent e29db82 commit 76a6ca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ export const useSWRHandler = <Data = any, Error = any>(
}
} catch (err) {
// Reset the state immediately.
cleanupState(startAt!)
// @ts-ignore
cleanupState(startAt)
cache.set(keyValidating, false)
if (getConfig().isPaused()) {
setState({
Expand Down

0 comments on commit 76a6ca2

Please sign in to comment.