goatslacker / goatslacker/alt

Util for generating the 3 action pairs.

Open
#285 5 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
3.4k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.