MCPcopy Create free account
hub / github.com/TanStack/query / emit

Function emit

packages/query-devtools/src/__tests__/utils.test.ts:1415–1419  ·  view source on GitHub ↗
(matches: boolean)

Source from the content-addressed store, hash-verified

1413 return {
1414 matchMedia,
1415 emit(matches: boolean) {
1416 listeners.forEach((listener) =>
1417 listener({ matches } as MediaQueryListEvent),
1418 )
1419 },
1420 listenerCount: () => listeners.size,
1421 }
1422 }

Callers 1

utils.test.tsFile · 0.85

Calls 1

listenerFunction · 0.50

Tested by

no test coverage detected