-
-
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
shouldRenderEmptyPage in ListView throws runtime error #10290
Comments
I can't reproduce the error you describe. You can see in the react-admin Storybook that As a side note, the related code that you point should never fail: if |
@fzaninotto Thank you for the quick response. What we know by now
|
Thanks for reporting this. Please provide a sample application showing the issue, preferably a sandbox forked from |
We have tried using the latest version (5.4.2), but we are still encountering the issue with the InfiniteList component. We have observed that the List component uses the same ListView component but without the pagination prop. When we switched our app to use the List component for testing/debugging purposes, it worked fine. We are only seeing this issue with the InfiniteList. We also tried reproducing the issue on a sandbox, but couldn't. Since this seems to be a matter of adding a null check, is it possible to get a fix? |
I'm sorry, but we definitely need a repro. |
What you were expecting:
We are using
InfiniteList
component from react-admin, the current 4.16.20 version, it runs clean and no problem.What happened instead:
Migrating react-admin from
4.16.20
to version 5, we are experiencing runtime error when renderingInfiniteList
component.Steps to reproduce:
The only change we made is package.json update to use the latest version
5.3.0
.Related code:
Can we add a null check in this code?
react-admin/packages/ra-ui-materialui/src/list/ListView.tsx
Line 79 in b921443
Other information:
Environment
5.3.0
4.16.20
18.3.1
The text was updated successfully, but these errors were encountered: