I am using @ngrx/store-devtools instrumentation with the Chrome Extension.
Does it has any sense to disable it for production mode?
You can simply not import it into your NgModule
when you are in production mode by doing something like this:
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
let dev = [
StoreDevtoolsModule.instrumentOnlyWithExtension()
];
if (environment.production) {
dev = [];
enableProdMode();
}
@NgModule({
imports: [
StoreModule.provideStore(rootReducer),
...dev
]
})
export class AppModule {}