Hyperlinkv0.8.0-beta.28

DynamicConfig

DynamicConfig.swappableconstsrc/DynamicConfig.ts:312
<A>(config: Config.Config<A>): SwappableField<A>

A hot-swappable field with no global footprint — pure construction, no registry write. Its typed control (.set / .reset / .changes) works wherever layer is provided; to also open the string setByKey path for it, hand its config to layer(config), which scopes the key to that one provision. Use globalSwappable for the declare-anywhere, process-wide string path instead.

export const swappable = <A>(config: Config.Config<A>): SwappableField<A> =>
  makeSwappableField(config, recordKeys(config));