From 921f93acbade800ba823f362eb0c8260a1f0c566 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Sun, 15 May 2022 02:45:36 +0200 Subject: [PATCH] remove ts-ignore --- infinite/index.ts | 4 ---- 1 file changed, 4 deletions(-) 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()