MCPcopy Create free account
hub / github.com/react/react / createFiberFromSuspenseList

Function createFiberFromSuspenseList

packages/react-reconciler/src/ReactFiber.js:812–822  ·  view source on GitHub ↗
(
  pendingProps: any,
  mode: TypeOfMode,
  lanes: Lanes,
  key: null | string,
)

Source from the content-addressed store, hash-verified

810}
811
812export function createFiberFromSuspenseList(
813 pendingProps: any,
814 mode: TypeOfMode,
815 lanes: Lanes,
816 key: null | string,
817): Fiber {
818 const fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
819 fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
820 fiber.lanes = lanes;
821 return fiber;
822}
823
824export function createFiberFromOffscreen(
825 pendingProps: OffscreenProps,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected