Search code examples
angularngrx-store

@ngrx Angular @ngrx/store-devtools instrumentOnlyWithExtension


Add @ngrx/store and try to add StoreDevtool extensions

StoreDevtoolsModule.instrumentOnlyWithExtension({
  maxAge: 5
})

and get error

Property 'instrumentOnlyWithExtension' does not exist on type 'typeof StoreDevtoolsModule'


Solution

  • already found the answer, on the latest version this property was replaced with instrument

    StoreDevtoolsModule.instrument({
      maxAge: 5
    })