diff --git a/infinite/index.ts b/infinite/index.ts index a2fc0cb67..9ed00cae4 100644 --- a/infinite/index.ts +++ b/infinite/index.ts @@ -220,10 +220,6 @@ export const infinite = ((useSWRNext: SWRHook) => } } - // We are using `arguments` here because there's no other way around to - // tell if an argument is missing or `undefined`. It will be compiled to - // `arguments` anyways. - // @ts-ignore return arguments.length ? swr.mutate(data, shouldRevalidate) : swr.mutate()