Category "ngxs"

CORS is somehow stopping my Angular and Nestjs apps from communicating

I'm building an app with Angular and NestJS using NGXS for state management. I got everything set up and served my application and got this error in the consol

Ngxs - How do I chain actions?

I want to do something like this for my registration. When clicking the register button, this will be executed: this.store.dispatch(new Register(user)) .s

NgXs @selector doesn't support async functions

Inside my NGXS store I have the following async selector @Selector() static async mainState(store: IMyStore): Promise<IMyState> { return this.getActiv

NGXS: Update deep level nested array state

So I have the following state: [ { name: "Main Tree", branches: [ { name: "Branch 1", branches: [] },