MCPcopy
hub / github.com/react/react / change

Function change

packages/use-subscription/src/__tests__/useSubscription-test.js:484–488  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

482 _callbacks: [],
483 _value: true,
484 change(value) {
485 eventHandler._value = value;
486 const _callbacks = eventHandler._callbacks.slice(0);
487 _callbacks.forEach(callback => callback(value));
488 },
489 getValue() {
490 return eventHandler._value;
491 },

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected