From 3c8a903fd301acb5d1f0dd1a5625c65cb0ae56a5 Mon Sep 17 00:00:00 2001 From: heonq Date: Wed, 30 Oct 2024 11:47:58 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=83=81=ED=92=88=20=EB=A6=AC?= =?UTF-8?q?=ED=94=84=EB=A0=88=EC=89=AC=20=EA=B4=80=EB=A0=A8=20=EC=9D=98?= =?UTF-8?q?=EC=A1=B4=EC=84=B1=20=EB=B0=B0=EC=97=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Products.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/Products.jsx b/src/pages/Products.jsx index 61393441..d7c4d7d7 100644 --- a/src/pages/Products.jsx +++ b/src/pages/Products.jsx @@ -103,9 +103,12 @@ function Products() { best: MEDIA_QUERY.bestProductsPageSize[screenWidth], normal: MEDIA_QUERY.productsPageSize[screenWidth], }); + }, [screenWidth]); + + useEffect(() => { bestProducts.refetch(); products.refetch(); - }, [screenWidth]); + }, [screenWidth, productSortBy, searchKeyword, page]); return (