-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt at full-set-of-failed-records CSV export (#86)
* Move record-export code out into own function * Provide all records in the result set, not just the currently visible page * This is done using the resource's GET mutator to step through pages * Use mutator.reset after fecthing records Fixes UIHAADM-140, sort of. The problem is that using the stripes-connect GET mutator to iterate through the records somehow affects the state — probably something deep inside the Redux store — in a way that leaves the UI trying to display records that are off the end of the list. I have mitigated this using `mutator.reset()`, which leaves the page blank and looking like it's loading. It's not ideal, but it's not actively wrong. I guess.
- Loading branch information
1 parent
aec6f83
commit 8f8e84c
Showing
3 changed files
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters