app.module.ts
, import the NgxsModule
:forFeature
option with the same arguments.developmentMode
can be passed to the module as the second argument in the forRoot
method. In development mode, plugin authors can add additional runtime checks/etc to enhance the developer experience. Switching to development mode will also freeze your store using deep-freeze-strict module.NgxsModule.forRoot([])
at the root of your module even if all of your states are feature states.@ngxs/store
or any of the plugins you can simply do:@dev
. Your package.json file will be locked to that specific version.