Add async `save` action creator
-
Add an action creator which can trigger an API save / update / create -
Should follow similar implementation patterns to existing action creator -
Documentation in README.md
-
Implement automated testing of action creator
E.g.,
import Blog from 'api/Blog'
import {
createFetchSaveAction,
createUpdateAction,
} from 'cd-redux-helpers/actions'
export const updateArticles = createUpdateAction('articles')
export const fetchSaveArticle = createFetchSaveAction(
Blog.post,
updateArticles
)