@ngrx/signals
Entitäten Management und Custom Features
Yannick Baron
@yannick_baron
Software Architecture Consultant
Slide 2
Slide 2 text
Why @ngrx/signals?
signal based state management on component level
conveniently handle multiple signals
brings rxjs interop to manage user interaction gracefully
brings entity management out of the box
extensible API through store features
functional principles
Slide 3
Slide 3 text
@ngrx/signals: Whats in it?
signalState
small scale simple state management
signalStore
elaborate state management including logic
patchState
method to transition between states
rxMethod
RxJS based callable methods (ComponentStore effects)
store features
extend the base store with recurring features
Slide 4
Slide 4 text
Entity management
withEntities: manage collection of entities
manipulation of collections always similar in implementation
add one, add many, update, remove, ...
Slide 5
Slide 5 text
Custom store features
build your own reusable feature
loading/error state, sorting, logging, ...
can be used to keep stores smaller
stores can also be split