(config: StoreDevtoolsConfig)
| 252 | } |
| 253 | |
| 254 | private getExtensionConfig(config: StoreDevtoolsConfig) { |
| 255 | const extensionOptions: ReduxDevtoolsExtensionConfig = { |
| 256 | name: config.name, |
| 257 | features: config.features, |
| 258 | serialize: config.serialize, |
| 259 | autoPause: config.autoPause ?? false, |
| 260 | trace: config.trace ?? false, |
| 261 | traceLimit: config.traceLimit ?? 75, |
| 262 | // The action/state sanitizers are not added to the config |
| 263 | // because sanitation is done in this class already. |
| 264 | // It is done before sending it to the devtools extension for consistency: |
| 265 | // - If we call extensionConnection.send(...), |
| 266 | // the extension would call the sanitizers. |
| 267 | // - If we call devtoolsExtension.send(...) (aka full state update), |
| 268 | // the extension would NOT call the sanitizers, so we have to do it ourselves. |
| 269 | }; |
| 270 | if (config.maxAge !== false /* support === 0 */) { |
| 271 | extensionOptions.maxAge = config.maxAge; |
| 272 | } |
| 273 | return extensionOptions; |
| 274 | } |
| 275 | |
| 276 | private sendToReduxDevtools(send: Function) { |
| 277 | try { |
no outgoing calls
no test coverage detected