Skip to content

Commit

Permalink
chore: remove useless comment (#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongmoumou authored Jan 14, 2024
1 parent b18781b commit d5d8482
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ export const useSWRHandler = <Data = any, Error = any>(

// Similar to the global mutate but bound to the current cache and key.
// `cache` isn't allowed to change during the lifecycle.
// eslint-disable-next-line react-hooks/exhaustive-deps
const boundMutate: SWRResponse<Data, Error>['mutate'] = useCallback(
// Use callback to make sure `keyRef.current` returns latest result every time
(...args: any[]) => {
Expand Down

0 comments on commit d5d8482

Please sign in to comment.