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
* remove comments
* add resetPageStore function
  • Loading branch information
CalamityC committed May 14, 2024
1 parent 48d4dbc commit a2f788e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/hooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export { default as useSingleFetchInterfaceCredentials } from './useSingleFetchI
export { default as useChunkedCQLFetch } from './useChunkedCQLFetch';
export { default as useChunkedUsers } from './useChunkedUsers';
export { default as useFetchCurrentAndNext } from './useFetchCurrentAndNext';
export { default as useLocalPageStore } from './useLocalPageStore';
export { default as useParallelBatchFetch } from './useParallelBatchFetch';
export { default as usePrevNextPagination } from './usePrevNextPagination';
export { default as usePrevious } from './usePrevious';
Expand Down
1 change: 0 additions & 1 deletion lib/hooks/useFetchCurrentAndNext.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { generateKiwtQueryParams } from '@k-int/stripes-kint-components';
const defaultParams = { page: 1 };

const useFetchCurrentAndNext = ({
// id, // for future use / local zustand store
params = {},
path = '',
keyArray = [],
Expand Down
1 change: 1 addition & 0 deletions lib/hooks/useLocalPageStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const useLocalPageStore = create(

return { ...state, pageStore: { ...state.pageStore, [key]: page } };
}),
resetPageStore: () => set({ pageStore: {} }),
}),
);

Expand Down

0 comments on commit a2f788e

Please sign in to comment.