Skip to content

Commit

Permalink
ERM-3220 Update pagination mechanisms for MCLs to work without stats
Browse files Browse the repository at this point in the history
* create new hook for fetch with no stats
* add hasNextPage prop to usePrevNextPagination
  • Loading branch information
CalamityC committed May 8, 2024
1 parent 078d8a9 commit 47d5c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hooks/useFetchWithNoStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useQueries } from 'react-query';
import { useOkapiKy } from '@folio/stripes/core';
import { generateKiwtQueryParams } from '@k-int/stripes-kint-components';

const usePrevNextPagination = ({
const useFetchWithNoStats = ({
id, // for future use / local zustand store

Check warning on line 7 in lib/hooks/useFetchWithNoStats.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

'id' is assigned a value but never used. Allowed unused vars must match /React/u

Check warning on line 7 in lib/hooks/useFetchWithNoStats.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

'id' is assigned a value but never used. Allowed unused vars must match /React/u
params = {},
path = '',
Expand Down Expand Up @@ -51,4 +51,4 @@ const usePrevNextPagination = ({
});
};

export default usePrevNextPagination;
export default useFetchWithNoStats;

0 comments on commit 47d5c71

Please sign in to comment.