Adjust actionCreators doc
This commit is contained in:
parent
cc30b8fb09
commit
5de0559192
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ limitations under the License.
|
||||||
* suffix determining whether it is pending, successful or
|
* suffix determining whether it is pending, successful or
|
||||||
* a failure.
|
* a failure.
|
||||||
* @param {function} fn a function that returns a Promise.
|
* @param {function} fn a function that returns a Promise.
|
||||||
* @returns {function} a function that uses its single argument as a dispatch
|
* @returns {function} an asyncronous action creator - a function that uses its
|
||||||
* function.
|
* single argument as a dispatch function.
|
||||||
*/
|
*/
|
||||||
export function asyncAction(id, fn) {
|
export function asyncAction(id, fn) {
|
||||||
return (dispatch) => {
|
return (dispatch) => {
|
||||||
|
|
Loading…
Reference in a new issue