ngrx / store-devtools

Developer Tools for @ngrx/store
MIT License
326 stars 38 forks source link

documentation unclear #32

Closed select closed 7 years ago

select commented 7 years ago

The readme states

@NgModule({
  imports: [
    StoreModule.provideStore(rootReducer),
    // Note that you must instrument after importing StoreModule
    StoreDevtoolsModule.instrumentStore({
      maxAge: 5,
      monitor: monitorReducer
    })
  ]
})

however I have no idea where you go the monitorReducer from.

Also I'm using (maybe due to old code) 'providers: []' to get init the store.

MikeRyanDev commented 7 years ago

monitorReducer is a reducer function for containing a monitor component's state. See @ngrx/store-log-monitor for an example monitor.

The preferred way to use the devtools now is using the Chrome extension. I've updated the README with instructions.

select commented 7 years ago

perfect, that is much better