Top "Ngxs" questions

🚀 NGXS - Provides State Management for Angular apps based on a Event Sourcing model.

Pipe and Tap VS subscribe with ngxs

I am playing around with pipe and subscribe. If I am using pipe with tap, nothing will log in console. …

angular rxjs pipe tap ngxs
How to use patchState vs setState in NGXS?

I am learning ngxs but I can't understand when should I use patchState and setState? What's the difference? const state = …

state-management ngxs angular-state-managmement
Difference in performance between ngrx and ngxs?

I want to use ngxs for state management in my Angular 6 application. But I am not sure if it is …

angular redux ngrx ngxs
NGXS @Select usage with state model

When using an NGXS @Select decorator what is the right way to access properties defined on the state model. E.…

angular typescript ngxs
How to return a `forkJoin` observable when piping the operators

Before I had this resolver that just worked fine: resolve() { return forkJoin( this.getData1(), this.getData2(), this.getData3() ); } Now I …

angular rxjs ngxs
Actions/state to load data from backend

I've just started experimenting with ngxs but from my reading so far I'm not 100% clear on where I should be …

angular ngxs
NGXS: How to test if an action was dispatched?

How to unit test whether an action was dispatched? For example, in a LogoutService, I have this simple method: logout(…

angular unit-testing ngxs