Error after enabling Partial Pagination
See original GitHub issueI have a table with 7 million rows, so pagination is very slow since it is running the count query. So I have set the partial pagination to true in my Global configuration.
But in the admin section when I select this table I am getting the below error.
Given action “RA/CRUD_GET_LIST_SUCCESS”, reducer “total” returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.
Any one has any idea, any help will be much appreciated. Thanks.
Edit 1: More info and Steps to Reproduce added.
- A normal request would return a Response with “totalItems”
"hydra:totalItems": 3328
- When you enable Partial Pagination then we don’t have “totalItems” in the Response anymore. I Think this is a problem in the admin since it is always expecting “totalItems”.
Steps to Reproduce:
- Enable Partial Pagination
# api/config/packages/api_platform.yaml api_platform: collection: pagination: partial: true # Disabled by default
- Browse the admin and you will get the error.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Error after enabling Partial Pagination - Bountysource
I have a table with 7 million rows, so pagination is very slow since it is running the count query. So I have...
Read more >(Classic) Report losing pagination on partial page refresh
The only thing you need to do is to enable it in the report attributes - "Enable Partial Page Refresh" needs to be...
Read more >pagedlist in partial view not working correctly- MVC4
I am getting problem when any of page is clicked again, then it doesn't load it into div allvendors-partial instead it goes to...
Read more >Solved: Enable pagination for Custom Connector Action
When I try to use it with the response body I get where the info is inside pagination->nextUrl, I get this error: Specified...
Read more >Pagination not working on Homepage, but works on the List ...
Additionally, you have hardcoded the page collection in your “pagination” partial. That's not going to work. I suggest you pass a page ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have same ussue
For information, same issue happens when you disabling pagination for an entity, such as:
@ApiResource(attributes={"pagination_enabled"=false})