Suggest an editImprove this articleRefine the answer for “What does Action do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**Action** in NgRx is an object that only describes an event ("something happened") and carries a required `type` field plus any data needed for processing. **Key point:** an Action changes nothing by itself, it is "heard" by a `reducer` (to update the state) and an `effect` (to perform a side effect).Shown above the full answer for quick recall.Answer (EN)Image`Action` in NgRx is simply an object that says: **"something happened"**. It **does not perform the action itself** and **does not change the state** - it only **describes the event**. ### Example ```ts { type: '[Auth] Login Success', user: { id: 1, name: 'Maria' } } ``` In this object: - `type` - a required field that states what exactly happened - everything else - any data needed for processing ### When is Action used 1. The component calls: ```ts this.store.dispatch(login({ email, password })); ``` 2. This `action` goes into the system. It can be "heard" by: - `reducer` - if the state needs to be updated - `effect` - if something side-effecting needs to happen (for example, an API request) ### Examples of actions - `[User] Load Profile` - `[Cart] Add Item` - `[Auth] Logout Success` ### Conclusion `Action` is like a telegram: "this happened, here's the data." NgRx then decides on its own what to do with it.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.