MCPcopy Create free account
hub / github.com/caseywebdev/react-list / createFiberFromPortal

Function createFiberFromPortal

docs/index.js:13081–13095  ·  view source on GitHub ↗
(portal, mode, lanes)

Source from the content-addressed store, hash-verified

13079 return content;
13080}
13081function createFiberFromPortal(portal, mode, lanes) {
13082 mode = createFiberImplClass(
13083 4,
13084 null !== portal.children ? portal.children : [],
13085 portal.key,
13086 mode
13087 );
13088 mode.lanes = lanes;
13089 mode.stateNode = {
13090 containerInfo: portal.containerInfo,
13091 pendingChildren: null,
13092 implementation: portal.implementation
13093 };
13094 return mode;
13095}
13096function markUpdate(workInProgress) {
13097 workInProgress.flags |= 4;
13098}

Callers 3

updatePortalFunction · 0.85
createChildFunction · 0.85
reconcileChildFibersImplFunction · 0.85

Calls 2

createFiberImplClassFunction · 0.85
createFiberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…