MCPcopy
hub / github.com/facebook/react / updateContainer

Function updateContainer

packages/react-reconciler/src/ReactFiberReconciler.js:356–373  ·  view source on GitHub ↗
(
  element: ReactNodeList,
  container: OpaqueRoot,
  parentComponent: ?component(...props: any),
  callback: ?Function,
)

Source from the content-addressed store, hash-verified

354}
355
356export function updateContainer(
357 element: ReactNodeList,
358 container: OpaqueRoot,
359 parentComponent: ?component(...props: any),
360 callback: ?Function,
361): Lane {
362 const current = container.current;
363 const lane = requestUpdateLane(current);
364 updateContainerImpl(
365 current,
366 lane,
367 element,
368 container,
369 parentComponent,
370 callback,
371 );
372 return lane;
373}
374
375export function updateContainerSync(
376 element: ReactNodeList,

Callers 9

renderFunction · 0.90
stopSurfaceFunction · 0.90
renderFunction · 0.90
unmountComponentAtNodeFunction · 0.90
ReactDOMRoot.jsFile · 0.90
createFunction · 0.90
updateFunction · 0.90
unmountFunction · 0.90

Calls 2

requestUpdateLaneFunction · 0.90
updateContainerImplFunction · 0.85

Tested by

no test coverage detected