From 4a3e7958d7b7156823c8ec322c09b84851a30134 Mon Sep 17 00:00:00 2001 From: Clearsu Date: Thu, 4 Jan 2024 14:38:12 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20=EC=BF=BC=EB=A6=AC=20=ED=82=A4=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EC=8B=9C=20=EC=BF=BC=EB=A6=AC=20=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=ED=99=94=20#1203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/infinityScroll.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/infinityScroll.ts b/utils/infinityScroll.ts index 89ddd168c..7881e7a34 100644 --- a/utils/infinityScroll.ts +++ b/utils/infinityScroll.ts @@ -86,7 +86,8 @@ export function InfiniteScroll( } }, retry: 0, - keepPreviousData: true, + // 쿼리 키 변경 시 쿼리를 초기화하여 isLoading 업데이트 + // keepPreviousData: true, } ); }