Created
December 8, 2017 11:41
-
-
Save vzaidman/c4ff12f1a5d5ceef59d730e5c3350efc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export const fetchTodos = makeThunkAsyncActionCreator('FETCH_TODOS', filter => fetchTodosFromServer(filter)) | |
// fetchTodos.TYPE === 'FETCH_TODOS@ASYNC_REQUEST' | |
This file contains hidden or 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
import {fetchTodos} from './actions' | |
return function(state, action){ | |
switch(action.type){ | |
... | |
case fetchTodos.TYPE: | |
... | |
return ... | |
... | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment