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 (