MCPcopy Create free account
hub / github.com/reactjs/react-rails / createFiberFromSuspense

Function createFiberFromSuspense

lib/assets/react-source/development/react.js:27713–27722  ·  view source on GitHub ↗
(pendingProps, mode, expirationTime, key)

Source from the content-addressed store, hash-verified

27711 }
27712
27713 function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
27714 var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
27715 // This needs to be fixed in getComponentName so that it relies on the tag
27716 // instead.
27717
27718 fiber.type = REACT_SUSPENSE_TYPE;
27719 fiber.elementType = REACT_SUSPENSE_TYPE;
27720 fiber.expirationTime = expirationTime;
27721 return fiber;
27722 }
27723 function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
27724 var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
27725

Callers 1

Calls 1

createFiberFunction · 0.85

Tested by

no test coverage detected