NgRx ایک Redux سے متاثر state-management لائبریری ہے جو Angular کے لیے ہے۔ یہ application state کو ایک single immutable store میں مرکزی کرتی ہے، جس میں ایک سخت، قابل پیش گوئی، یک طرفہ ڈیٹا کا بہاؤ RxJS پر بنایا گیا ہے۔
بنیادی اجزاء اور بہاؤ
Component dispatches an ACTION →
REDUCER produces new state (pure function) →
STORE updates →
SELECTORS read state →
Component re-renders
(EFFECTS handle side effects like HTTP, dispatching new actions)
