Tejas Rana
  • Home
  • About
  • Experience
  • Skills
  • Blogs
  • Technology
  • Contact
ngrx-behavior
May 11 2020

What is NGRX and Use of NGRX

tejas Angular

So, In the previous blog, we learn what is State management and the benefit of State in our App. I gave you a basic idea about the store in the previous blog. But in this blog post, I will give you more detail about the store of NGRS.
Store, As the name we can assume that it is related to storing data. Yes, Store is an in-memory DB on the client-side. It is the main part of State management because whatever you want to keep state you need some kind of storage, State helps you in that. The state is immutable which means you can not change it directly. It can only be changed with the reducers by keeping it immutable.
So, In short, we can say the state is only in-memory storage.
Now, let’s move to its friends which are Action, Reducers, And Dispatcher.
Action: AS we can assume with its name it defines which kind of Action we want to perform. Yes, the action is used to define the type of action/event such as ADD, UPDATE, DELETE, GET. But again we can not act directly on Store. So we need to take help from Reducers.
Reducers: As we know the Store cannot be modified directly so the reducer handles the transition from one state to another state of Store.
Dispatcher: Dispatcher is required to pass the action to Store.
Here is the simple lifecycle which helps you to understand the flow of NGRX

In the next blog, I will create a small app using NGRX so, till that stay tuned. Happy Coding…

What is State Management in Angular? How to improve Performance? Opencart 3 Social Login Extension [FREE]

Related Posts

Angular

What is State Management in Angular? How to improve Performance?

Angular

Angular Typescript Geo Info Module

angular wxv655 StackBlitz

Angular

Angular 6: Remove Object from Array of Object on Conditional Based

Categories

  • .NET
  • Android
  • Angular
  • CakePHP
  • CSS
  • Devops
  • Drupal
  • Infi MVC
  • iOS
  • Javascript
  • Magento
  • Meteor
  • MongoDB
  • Opencart
  • Other
  • PHP
  • Python
  • Ruby
  • Tips & Tricks
  • WordPress

Recent Posts

  • Simplify Product Filtering by Category and Store ID in the Admin Panel with Our Powerful OpenCart 3.x Free Extension
  • Opencart 3.x Set currency based on user’s IP [Free Extension]
  • Anatomy of A Coronavirus-Proof Business[Infographic]
  • Opencart 3 Social Login Extension [FREE]
  • What is NGRX and Use of NGRX

Recent Comments

  • Nilesh on What is State Management in Angular? How to improve Performance?
  • Dinesh on Use Magento If You're Serious About eCommerce
  • Virendra on Use Magento If You're Serious About eCommerce
  • Tejas Rana on Show limited words in PHP from string with HTML tags
  • nadim on Show limited words in PHP from string with HTML tags
Tejas Rana
© Tejas Rana 2025