MCPcopy Create free account
hub / github.com/benjitaylor/agentation / createForwardRefFiber

Function createForwardRefFiber

package/src/utils/source-location.test.ts:139–158  ·  view source on GitHub ↗
(
  name: string,
  debugSource?: MockDebugSource | null,
  parent?: MockFiberNode
)

Source from the content-addressed store, hash-verified

137}
138
139function createForwardRefFiber(
140 name: string,
141 debugSource?: MockDebugSource | null,
142 parent?: MockFiberNode
143): MockFiberNode {
144 const Component = function () {};
145 Object.defineProperty(Component, "name", { value: name });
146
147 return {
148 _debugSource: debugSource,
149 _debugOwner: parent,
150 return: parent,
151 type: Component,
152 elementType: {
153 $$typeof: Symbol.for("react.forward_ref"),
154 displayName: name,
155 },
156 tag: FiberTags.ForwardRef,
157 };
158}
159
160// =============================================================================
161// Mock Implementation of getSourceLocation

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…