Last active
December 8, 2017 11:29
-
-
Save vzaidman/c3bb23b79b14e9bba1b5a13339a9f763 to your computer and use it in GitHub Desktop.
Redux Toolbelt Simple Action and Reducer
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
impoort { makeThunkAsyncActionCreator } from 'redux-toolbelt-thunk' | |
export const fetchTodos = makeThunkAsyncActionCreator('FETCH_TODOS', filter => fetchTodosFromServer(filter)) | |
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
impoort { makeAsyncReducer } from 'redux-toolbelt' | |
export const todos = makeAsyncReducer(fetchTodos) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment