Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Jun 26, 2022
1 parent 1b0eceb commit dcda636
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const useSWRHandler = <Data = any, Error = any>(
? memorizedSnapshot
: (memorizedSnapshot = snapshot)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [cache, key])

// Get the current state that SWR should return.
Expand Down

0 comments on commit dcda636

Please sign in to comment.