Created
December 18, 2020 09:08
-
-
Save hindmost/2b3ebf46cf69399730e7d0e46f377d6d to your computer and use it in GitHub Desktop.
reduxed-chrome-storage article: async action creator example
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
const addTodo = text => ({ | |
type: 'ADD_TODO', | |
text | |
}); | |
const delayAddTodo = (text) => dispatch => { | |
setTimeout(() => { | |
dispatch(addTodo(text)); | |
}, 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment