MCPcopy Create free account
hub / github.com/microsoft/SandDance / createFiberFromSuspense

Function createFiberFromSuspense

docs/external/js/react-dom.development.js:24153–24162  ·  view source on GitHub ↗
(pendingProps, mode, expirationTime, key)

Source from the content-addressed store, hash-verified

24151 }
24152
24153 function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
24154 var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
24155 // This needs to be fixed in getComponentName so that it relies on the tag
24156 // instead.
24157
24158 fiber.type = REACT_SUSPENSE_TYPE;
24159 fiber.elementType = REACT_SUSPENSE_TYPE;
24160 fiber.expirationTime = expirationTime;
24161 return fiber;
24162 }
24163 function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
24164 var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
24165

Callers 1

Calls 1

createFiberFunction · 0.85

Tested by

no test coverage detected