MCPcopy
hub / github.com/signalapp/Signal-Desktop / getValue

Function getValue

ts/RemoteConfig.dom.ts:372–381  ·  view source on GitHub ↗
(
  name: ConfigKeyType, // when called from UI component, provide redux config (items.remoteConfig)
  reduxConfig?: ConfigMapType
)

Source from the content-addressed store, hash-verified

370}
371
372export function getValue(
373 name: ConfigKeyType, // when called from UI component, provide redux config (items.remoteConfig)
374 reduxConfig?: ConfigMapType
375): string | undefined {
376 assertDev(
377 reduxConfig != null || config != null,
378 'getValue called before remote config is ready'
379 );
380 return get(reduxConfig ?? config, [name, 'value']);
381}
382
383// See isRemoteConfigBucketEnabled in selectors/items.ts
384/** @knipignore Keep around for future features that might need it */

Callers 2

_refreshRemoteConfigFunction · 0.70
isBucketValueEnabledFunction · 0.70

Calls 2

assertDevFunction · 0.90
getFunction · 0.50

Tested by

no test coverage detected