The naming convention of Action & Async action creators

Jero
1 min readJun 10, 2019

ACTION

  • (<NOUN>_<VERB>): Effect is most commonly a noun that means the result of an action.

Example:

— CATALOG_ADDED

— CATALOG_REMOVED

— CATALOG_CHANGED

ASYNC ACTION CREATOR

  • (<VERB><NOUN>): Affect is most commonly a verb.

Example:

— REQUESTING_CATALOG

— REQUESTING_CATALOG_SUCCESS

—REQUESTING_CATALOG_FAILURE

But in terms of Ducks, we could append add feature name first separated by `/` character.

NOTE: if you know more about Affect and Effect you could take a look at http://web.ku.edu/~edit/affect.html

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Jero
Jero

No responses yet

Write a response