(name: string, handler: (value: any) => void)
| 32 | * The handler is only called when another runtime fires the change. |
| 33 | */ |
| 34 | const attachConfigChange = (name: string, handler: (value: any) => void): void => { // eslint-disable-line |
| 35 | getEventProvider().attachEvent(CONFIG_CHANGE, (detail: ConfigChangeDetail) => { |
| 36 | if (detail.name === name && !skipFlags.has(name)) { |
| 37 | handler(detail.value); |
| 38 | } |
| 39 | }); |
| 40 | }; |
| 41 | |
| 42 | /** |
| 43 | * Reads the last-set value from the shared values map. |
no test coverage detected
searching dependent graphs…