Skip to content

Commit f51a947

Browse files
Merge pull request #33 from bhagirathpaliyal/performance-optimize
update allproducts.jsx
2 parents 27638a3 + 0eb0991 commit f51a947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/AllProducts.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function AllProducts() {
1717

1818
useEffect(() => {
1919
if ((!status || status == 'error' || status == 'idle')) {
20-
dispatch(fetchProduct());
20+
dispatch(fetchProduct({}));
2121
}
2222
}, [user,dispatch]);
2323
console.log(product);

0 commit comments

Comments
 (0)