This commit is contained in:
Luke Barnard 2017-12-13 17:32:46 +00:00
parent 950f591b3f
commit 6b02f59fb7
3 changed files with 6 additions and 6 deletions

View file

@ -21,8 +21,8 @@ limitations under the License.
* suffix determining whether it is pending, successful or
* a failure.
* @param {function} fn a function that returns a Promise.
* @returns {function} an asyncronous action creator - a function that uses its
* single argument as a dispatch function.
* @returns {function} an asynchronous action creator - a function that uses
* its single argument as a dispatch function.
*/
export function asyncAction(id, fn) {
return (dispatch) => {