MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fanOut

Function fanOut

src/utils/settings/changeDetector.ts:437–440  ·  view source on GitHub ↗

* Reset the settings cache, then notify all listeners. * * The cache reset MUST happen here (single producer), not in each listener * (N consumers). Previously, listeners like useSettingsChange and * applySettingsChange reset defensively because some notification paths * (file-watch at :289/340

(source: SettingSource)

Source from the content-addressed store, hash-verified

435 * repopulates; all subsequent listeners hit the cache.
436 */
437function fanOut(source: SettingSource): void {
438 resetSettingsCache()
439 settingsChanged.emit(source)
440}
441
442/**
443 * Manually notify listeners of a settings change.

Callers 4

handleChangeFunction · 0.85
handleDeleteFunction · 0.85
startMdmPollFunction · 0.85
notifyChangeFunction · 0.85

Calls 2

resetSettingsCacheFunction · 0.85
emitMethod · 0.80

Tested by

no test coverage detected