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

Function attachFiber

package/src/utils/react-detection.test.ts:36–38  ·  view source on GitHub ↗
(element: HTMLElement, fiber: unknown)

Source from the content-addressed store, hash-verified

34
35// Helper to attach fiber to an element
36function attachFiber(element: HTMLElement, fiber: unknown) {
37 (element as unknown as Record<string, unknown>)["__reactFiber$test"] = fiber;
38}
39
40// Helper to create element with fiber attached
41function createElementWithFiber(

Callers 2

createElementWithFiberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…