Store Devtools
For Debug the State with the Redux Devtools Extension, it's only necessary to install and register the @ngrx/store-devtools in your root Module.
app.module.ts
import { NgModule } from '@angular/core';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
@NgModule({
imports: [
StoreDevtoolsModule.instrument({
name: 'ngrx-lite-demo',
maxAge: 25,
logOnly: false,
// define the monitor Property here
monitor: (state, action) => action,
}),
],
})
export class AppModule {}
It's important to set the
monitor
property in your devToolConfig, otherwise an State Import is not possible.