MCPcopy
hub / github.com/plotly/dash / legacyRenderSubtreeIntoContainer

Function legacyRenderSubtreeIntoContainer

dash/deps/react-dom@18.2.0.js:29600–29629  ·  view source on GitHub ↗
(parentComponent, children, container, forceHydrate, callback)

Source from the content-addressed store, hash-verified

29598 }
29599
29600 function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
29601 {
29602 topLevelUpdateWarnings(container);
29603 warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
29604 }
29605
29606 var maybeRoot = container._reactRootContainer;
29607 var root;
29608
29609 if (!maybeRoot) {
29610 // Initial mount
29611 root = legacyCreateRootFromDOMContainer(container, children, parentComponent, callback, forceHydrate);
29612 } else {
29613 root = maybeRoot;
29614
29615 if (typeof callback === 'function') {
29616 var originalCallback = callback;
29617
29618 callback = function () {
29619 var instance = getPublicRootInstance(root);
29620 originalCallback.call(instance);
29621 };
29622 } // Update
29623
29624
29625 updateContainer(children, root, parentComponent, callback);
29626 }
29627
29628 return getPublicRootInstance(root);
29629 }
29630
29631 function findDOMNode(componentOrElement) {
29632 {

Callers 4

hydrateFunction · 0.70
renderFunction · 0.70
unmountComponentAtNodeFunction · 0.70

Calls 4

warnOnInvalidCallback$1Function · 0.70
getPublicRootInstanceFunction · 0.70
updateContainerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…