- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 32.7k
Closed
Labels
good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.scope: paginationChanges related to the pagination.Changes related to the pagination.typescript
Description
Steps to reproduce
Link to live example: https://codesandbox.io/p/devbox/88qvg2?file=%2Fsrc%2FDemo.tsx
Steps:
- Use getItemAriaLabel
- Check pageargs that are passed in on the initial render ofPagination
Current behavior
Hello 👋
It looks like the getItemAriaLabel prop on Pagination is typed as:
getItemAriaLabel?: (type: UsePaginationItem['type'], page: number, selected: boolean) => string;
with the non-null page param, but null seems to be coming through on initial render of Pagination (see demo):
 ###
### 
Expected behavior
Would it be possible to either change the behavior of passing null in for page or else change the typing of getItemAriaLabel to make it clear that null is an option for page?
Context
We are trying to use strict null safety
Your environment
See https://codesandbox.io/p/devbox/88qvg2?file=%2Fsrc%2FDemo.tsx
Thank you!
Search keywords: getItemAriaLabel page null
Metadata
Metadata
Assignees
Labels
good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.scope: paginationChanges related to the pagination.Changes related to the pagination.typescript