All files / constants pagination.js

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 1127x 27x     27x     27x   27x  
export const NEXT = 'next';
export const PREV = 'prev';
 
// THIS SHOULD BE SET BY CALLING CODE, ONLY DEFAULTED TO AVOID DIVISION BY UNDEFINED
export const DEFAULT_PAGINATION_SIZE = 25;
// Only here because we need argument 3 from onNeedMoreData
// and want to avoid "magic number" sonarlint
export const MCL_NEED_MORE_DATA_PREV_NEXT_ARG_INDEX = 3;
 
export const DEFAULT_PAGE_KEY = 'defaultPageKey';