Last active
April 25, 2016 01:52
-
-
Save sammylupt/dea2a8cbfe1cf194170e4f4b45620016 to your computer and use it in GitHub Desktop.
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
function addProduct(product) { | |
return (dispatch, getState) => { | |
const someOtherValue = getState().foo.bar | |
dispatch({ | |
type: ADD_PRODUCT, | |
data: product, | |
someOtherValue: someOtherValue | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment