question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export button is not getting updated when `total` is updated

See original GitHub issue

What 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:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
manishsundriyalcommented, Apr 18, 2020

@djhi @fzaninotto Shouldn’t this be closed now?

1reaction
ThieryMichelcommented, Jan 3, 2020

Thanks for the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found