Monitoring Unhandled Actions
import { provideStore, withNgxsDevelopmentOptions } from '@ngxs/store';
export const appConfig: ApplicationConfig = {
providers: [
provideStore(
[],
withNgxsDevelopmentOptions({
warnOnUnhandledActions: true
})
)
]
};import { NgxsModule, NgxsDevelopmentModule } from '@ngxs/store';
@NgModule({
imports: [
NgxsModule.forRoot([]),
NgxsDevelopmentModule.forRoot({
warnOnUnhandledActions: true
})
]
})
export class AppModule {}Ignoring Certain Actions
Last updated

