Export button is not getting updated when `total` is updated
See original GitHub issueWhat you were expecting:
Expecting the Export button to get re-rendered when the total is changed
What happened instead:
The Export button was not changed
Steps to reproduce: visit a resource’s list page directly using the link (or by refreshing it)
Related code:
At this line of code the total property is not included in the onlyUpdateForKeys list which causes the export button not to be refreshed when the {data, total} pair is updated.
Meanwhile at this line of code the export button is total dependent.
Also, I’ve checked the 3.x version, there the total is included as written at this line of code
Possible Solution
Just add total to the list of onlyUpdateForKeys.
Other information: None
Environment
- React-admin version: 2.9.5
- Last version that did not exhibit the issue (if applicable): idk
- React version: 16.9.0
- Browser: google chrome
- Stack trace (in case of a JS error): none
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
ERROR - When keep EXPORT button in UpdatePanel - MSDN
This panel is having total 5 buttons, create, count, preview, export and delete. Out of these EXPORT button is not working in UpdatePanel ......
Read more >CSV export button not appearing - New Relic Explorers Hub
Hello, I am attempting to export Insights data for a query I ran. However, I am unable to see the CSV button needed...
Read more >Export button in datatable does not take filters into consideration
im new here , i write you because i have a problem when i export data from datatable i export the data without...
Read more >Export buttons are not showing on datatable
Probably a load order issue. Move line 38 with jquery.dataTables.min.js above the buttons.js files. The buttons includes require datatables.js ...
Read more >New Export Button - Capture One
The new version changes the Process tab to an Export button. I have my Process Tab set to PSD full size almost all...
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 Free
Top 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

@djhi @fzaninotto Shouldn’t this be closed now?
Thanks for the issue.