Skip to content

Commit

Permalink
Merge pull request #121 from ConductionNL/feature/XW-94/Dymanic-pagin…
Browse files Browse the repository at this point in the history
…ation-limit

feature/XW-94/Dymanic-pagination-limit
  • Loading branch information
remko48 authored Oct 18, 2023
2 parents 51a4274 + ef4af2c commit fe1d46f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pwa/src/templates/landing/LandingTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const LandingTemplate: React.FC = () => {
const queryClient = new QueryClient();
const getItems = useOpenWoo(queryClient).getAll(filters, currentPage, queryLimit.objectsQueryLimit);

React.useEffect(() => {
setCurrentPage(1);
}, [queryLimit.objectsQueryLimit]);

return (
<>
<JumbotronTemplate />
Expand Down

0 comments on commit fe1d46f

Please sign in to comment.