Resolve "Option to send full response to custom action handlers"
What I Did
- Added
ACTION_RETURN_FULL_RESPONSEoption for handling full responses - Added
ACTION_DONT_CHUNKoption to disable request chunking in createFetchDetailAction - Move error and response handler out to unified factories instead of inlined
- Improved code commenting
Todo
-
README.mdto document new options, and how to use them. -
Jest tests to verify new factories are working as they should.
Testing
- Ensure that this version of the library works correctly with existing implementations
- Set
ACTION_RETURN_FULL_RESPONSEagainst theresponseDataoption and ensure it returns the full API response. - Set
ACTION_DONT_CHUNKagainst thechunkSizeoption increateFetchDetailActionand ensure it DOESN'T chunk requests at 500 ids (default)
Closes #9 (closed)
Edited by Sam Sehnert