Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderOnZeroPageCount can not take null in React TS #461

Closed
z3nitsu opened this issue Dec 17, 2022 · 2 comments
Closed

renderOnZeroPageCount can not take null in React TS #461

z3nitsu opened this issue Dec 17, 2022 · 2 comments

Comments

@z3nitsu
Copy link

z3nitsu commented Dec 17, 2022

Type 'null' is not assignable to type '((props: ReactPaginateProps) => void | null) | undefined'.

@alislg
Copy link

alislg commented Jan 15, 2023

Replace "null" with "()=>null" like this:
renderOnZeroPageCount={() => null}

MonsieurV added a commit that referenced this issue Feb 28, 2023
@AdeleD
Copy link
Owner

AdeleD commented Apr 12, 2023

Fixed in v8.1.5.

@AdeleD AdeleD closed this as completed Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants