goatslacker/alt

Util for generating the 3 action pairs.

Open

#285 创建于 2015年6月2日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (3,451 star) (337 fork)batch import
help wanted

描述

Would like a util that takes in a name and generates the 3 actions that you normally use with data sources/async:

Loading, Success, Failure actions.

API can be whatever, I'm thinking something like:

const actions = nameForThisFunctionHere('foo'); // = ['fooSuccess', 'fooLoading', 'fooFailed']

perhaps 2 functions, one to generate the array which can then be passed into generateActions and another one that actually creates the actions for you?

贡献者指南

Util for generating the 3 action pairs. · goatslacker/alt#285 | Good First Issue