Commit c1404440 by jaymehta

paginationissue

1 parent e6d1b7cd
...@@ -40,15 +40,15 @@ const ListingItems = ({ allActivitiesData, loading, gridClass, totalCount }) => ...@@ -40,15 +40,15 @@ const ListingItems = ({ allActivitiesData, loading, gridClass, totalCount }) =>
queryParams.append("page", pageNumber); queryParams.append("page", pageNumber);
} }
dispatch(getActivitiesByFilters({ currentPage: pageNumber })); // dispatch(getActivitiesByFilters({ currentPage: pageNumber }));
router.replace({ router.replace({
search: queryParams.toString() search: queryParams.toString()
}); });
}; };
console.log("page", page); console.log("page", page);
useEffect(() => { // useEffect(() => {
dispatch(getActivitiesByFilters({ currentPage: page })); // dispatch(getActivitiesByFilters({ currentPage: page }));
}, []) // }, [])
return ( return (
<> <>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!