Actually make use of redux-offline
and use it to make _all_ our requests
#163
Labels
enhancement
New feature or request
good first issue
Good for newcomers
requirements gathering
scoping
Issues that need details hashed out
Milestone
Use some combination of https://github.com/redux-offline/redux-offline#3-decorate-actions-with-offline-metadata and https://github.com/redux-offline/redux-offline/blob/develop/docs/recipes/customize-requests.md#the-effect-reconciler to rejig the way we currently
fetchPosts
,fetchResume
andfetchLetter
.The trouble here is that we're currently dispatching thunks 'cause there some response handling work that we need to do that really isn't appropriate to put in the reducer (at least, that's my feeling), like casting the response to our desired Immutable Record type.
Exactly how we go about doing this isn't clear – but I'm thinking that we rejig the reconciler to take a reference to some function that runs after the response is received and transforms it into something worth dispatching in the
commit
orrollback
action.We basically want to use this, or something similar.
The text was updated successfully, but these errors were encountered: