MCPcopy Index your code
hub / github.com/caseywebdev/react-list / updatePortal

Function updatePortal

docs/index.js:6362–6377  ·  view source on GitHub ↗
(returnFiber, current, portal, lanes)

Source from the content-addressed store, hash-verified

6360 return current;
6361 }
6362 function updatePortal(returnFiber, current, portal, lanes) {
6363 if (
6364 null === current ||
6365 4 !== current.tag ||
6366 current.stateNode.containerInfo !== portal.containerInfo ||
6367 current.stateNode.implementation !== portal.implementation
6368 )
6369 return (
6370 (current = createFiberFromPortal(portal, returnFiber.mode, lanes)),
6371 (current.return = returnFiber),
6372 current
6373 );
6374 current = useFiber(current, portal.children || []);
6375 current.return = returnFiber;
6376 return current;
6377 }
6378 function updateFragment(returnFiber, current, fragment, lanes, key) {
6379 if (null === current || 7 !== current.tag)
6380 return (

Callers 2

updateSlotFunction · 0.85
updateFromMapFunction · 0.85

Calls 2

createFiberFromPortalFunction · 0.85
useFiberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…