Resolve "Option to send full response to custom action handlers"
What I Did
- Added
ACTION_RETURN_FULL_RESPONSE
option for handling full responses - Added
ACTION_DONT_CHUNK
option to disable request chunking in createFetchDetailAction - Move error and response handler out to unified factories instead of inlined
- Improved code commenting
Todo
-
README.md
to 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_RESPONSE
against theresponseData
option and ensure it returns the full API response. - Set
ACTION_DONT_CHUNK
against thechunkSize
option increateFetchDetailAction
and ensure it DOESN'T chunk requests at 500 ids (default)
Closes #9 (closed)