Skip to content

What is the purpose of the type property of an action? #1743

Answered by arturovt
scaljeri asked this question in Q&A
Discussion options

You must be logged in to vote

This is actually a classic Redux:

An action is a plain JavaScript object that has a type field. You can think of an action as an event that describes something that happened in the application.

Not sure it's worth copy-pasting the already existing description.

More info here: https://redux.js.org/tutorials/fundamentals/part-2-concepts-data-flow

NgRx and other Redux-like state management decisions also require defining type property on actions.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by splincode
Comment options

You must be logged in to vote
2 replies
@markwhitfeld
Comment options

@scaljeri
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1717 on May 03, 2021 09:41.