MCPcopy Create free account
hub / github.com/ngrx/platform / getExtensionConfig

Method getExtensionConfig

modules/store-devtools/src/extension.ts:254–274  ·  view source on GitHub ↗
(config: StoreDevtoolsConfig)

Source from the content-addressed store, hash-verified

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 {

Callers 2

notifyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected