Flag can be passed to StoreModule.forRoot method. When production is enabled:
StoreModule.forRoot
All manipulations with state from window object are not allowed
window
State is disconnected from window object
Warnings are disabled
However if you want to track state manipulations from code you can inject StateHistory service
StateHistory
Last updated 6 years ago