Commit 2926a56c by jaymehta

.

1 parent d4e8a550
......@@ -22,9 +22,9 @@ const Detail = () => {
useEffect(() => {
// console.log("router", activityById.data.attributes.category?.data?.attributes.name);
dispatch(getActivitiesByFilters({ category: activityById?.data.attributes.category?.data?.id, currentPage: router.query.page }));
}, [activityById]);
}, [activityById, router]);
console.log("faqs=>", faqs);
// console.log("faqs=>", faqs);
console.log("activityById", activityById);
console.log("loadedUser", loadedUser);
return (
......
......@@ -111,7 +111,7 @@ const ListingInner = ({ allActivitiesData, loading, totalCount }) => {
currentPage: router.query.page
})
);
}, [activityFilters]);
}, [activityFilters, router]);
return (
<>
......
......@@ -11,9 +11,9 @@ export default function ListingPage() {
/** Client side rendering, traditional API call. */
const router = useRouter();
const dispatch = useDispatch();
useEffect(() => {
dispatch(getActivitiesByFilters({ currentPage: router.query.page }));
}, [router]);
// useEffect(() => {
// dispatch(getActivitiesByFilters({ currentPage: router.query.page }));
// }, [router]);
return (
<Layout>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!