MCPcopy Create free account
hub / github.com/plotly/dash / legacyRenderSubtreeIntoContainer

Function legacyRenderSubtreeIntoContainer

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

Source from the content-addressed store, hash-verified

29637 }
29638
29639 function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
29640 {
29641 topLevelUpdateWarnings(container);
29642 warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
29643 }
29644
29645 var maybeRoot = container._reactRootContainer;
29646 var root;
29647
29648 if (!maybeRoot) {
29649 // Initial mount
29650 root = legacyCreateRootFromDOMContainer(container, children, parentComponent, callback, forceHydrate);
29651 } else {
29652 root = maybeRoot;
29653
29654 if (typeof callback === 'function') {
29655 var originalCallback = callback;
29656
29657 callback = function () {
29658 var instance = getPublicRootInstance(root);
29659 originalCallback.call(instance);
29660 };
29661 } // Update
29662
29663
29664 updateContainer(children, root, parentComponent, callback);
29665 }
29666
29667 return getPublicRootInstance(root);
29668 }
29669
29670 var didWarnAboutFindDOMNode = false;
29671 function findDOMNode(componentOrElement) {

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…