MCPcopy
hub / github.com/benjitaylor/agentation / clearReactDetectionCache

Function clearReactDetectionCache

package/src/utils/react-detection.ts:435–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433 * Note: Only 'all' mode uses caching; filtered modes don't cache to avoid stale filter results
434 */
435export function clearReactDetectionCache(): void {
436 reactDetectionCache = null;
437 componentCacheAllRef.map = new WeakMap<HTMLElement, ReactComponentInfo>();
438}
439
440function getReactFiberKey(element: HTMLElement): string | null {
441 const keys = Object.keys(element);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…