-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Error with Pagination props #7955
Labels
Comments
Same happing with me. |
Reproduced on 4.x, thanks! |
@fzaninotto i am having this problem at version 3.19, could you fix for that version also? |
sure @fzaninotto, i gonna work on it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What you were expecting:
I need to create a custom list component using hooks to deal with requests. So, I don't want to use the
<List>
component.I saw in the documentation that it is possible to use
<Datagrid> With A Custom Query
. The doc can be read hereAs you can see in the doc, we can use the
<Pagination>
component after<Datagrid>
passing these props:So, I have been expecting to use that without error.
What happened instead:
However, when I use these props in
<Pagination>
with Typescript, I have an error, because<Pagination>
just receives these props:The error is:
Steps to reproduce:
You can see the error here: https://codesandbox.io/s/heuristic-ganguly-jhsu68?file=/src/posts/PostList.tsx
Related code:
The text was updated successfully, but these errors were encountered: