What is the use of the logOnly parameter in ngrx DevTools?

I read the minimalist docs at https://github.com/ngrx/platform/tree/master/docs/store-devtools and realized that you can add fixtures as follows:

StoreDevtoolsModule.instrument({
  logOnly: environment.production
})

Presumably, if the logOnly flag is true, your application will connect to the Redux DevTools extension in log-only mode, it will have very little overhead, since it does not need to store state data, but only register the names of actions that occur at runtime.

But in my experiments, I still see status data in the ngrx DevTools panel, so what are the benefits of using logOnly:true?

+4
source share
1 answer

, , :

logOnly: - Devtools . - false, .

.

, , logOnly true redux-devtools-extension:

const composeEnhancers = composeWithDevTools({
  features: {
    pause: true, // start/pause recording of dispatched actions
    lock: true, // lock/unlock dispatching actions and side effects    
    persist: true, // persist states on page reloading
    export: true, // export history of actions in a file
    import: 'custom', // import history of actions from a file
    jump: true, // jump back and forth (time travelling)
    skip: true, // skip (cancel) actions
    reorder: true, // drag and drop actions in the history list 
    dispatch: true, // dispatch custom actions or action creators
    test: true // generate tests for the selected actions
  },
});

, , .

+1

Source: https://habr.com/ru/post/1694236/


All Articles