ngrx / store-devtools

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

maxAge is not set with instrumentOnlyWithExtension #75

Open just-jeb opened 6 years ago

just-jeb commented 6 years ago

I'm experiencing Chrome crashes while working with my Redux store.

I use Redux DevTools extension for Chrome and I setup store-devtools like this:

 imports: [
        StoreModule.provideStore(combinedReducer),
        ...(environment.production ? [] : [StoreDevtoolsModule.instrumentOnlyWithExtension({
            maxAge: 5
        })])
 ]

After a short investigation I came up with a conclusion that maxAge is not being set while setting it through instrumentOnlyWithExtension (the actions are not getting removed at all). When I change it to instrumentStore it works perfectly (only 5 actions are being saved).

I guess it means that instrumentOnlyWithExtension does not work properly.

Details: OS: Windows 7 Browser: Chrome npm: 5.0.3 store-devtools: 3.2.4