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

Function updateContainerSync

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

Source from the content-addressed store, hash-verified

373}
374
375export function updateContainerSync(
376 element: ReactNodeList,
377 container: OpaqueRoot,
378 parentComponent: ?component(...props: any),
379 callback: ?Function,
380): Lane {
381 if (!disableLegacyMode && container.tag === LegacyRoot) {
382 flushPendingEffects();
383 }
384 const current = container.current;
385 updateContainerImpl(
386 current,
387 SyncLane,
388 element,
389 container,
390 parentComponent,
391 callback,
392 );
393 return SyncLane;
394}
395
396function updateContainerImpl(
397 rootFiber: Fiber,

Callers 7

componentDidMountMethod · 0.90
componentDidUpdateMethod · 0.90
componentWillUnmountMethod · 0.90
unmountComponentAtNodeFunction · 0.90
ReactDOMRoot.jsFile · 0.90
scheduleRootFunction · 0.90

Calls 2

flushPendingEffectsFunction · 0.90
updateContainerImplFunction · 0.85

Tested by

no test coverage detected