MCPcopy
hub / github.com/facebook/react / emit

Function emit

packages/react-devtools-shared/src/hook.js:266–270  ·  view source on GitHub ↗
(event: string, data: any)

Source from the content-addressed store, hash-verified

264 }
265
266 function emit(event: string, data: any) {
267 if (listeners[event]) {
268 listeners[event].map(fn => fn(data));
269 }
270 }
271
272 function getFiberRoots(rendererID: RendererID) {
273 const roots = fiberRoots;

Callers

nothing calls this directly

Calls 2

mapMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected