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

Function adoptClassInstance

dash/deps/react-dom@18.3.1.js:18154–18163  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

18152 }
18153
18154 function adoptClassInstance(workInProgress, instance) {
18155 instance.updater = classComponentUpdater;
18156 workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
18157
18158 set(instance, workInProgress);
18159
18160 {
18161 instance._reactInternalInstance = fakeInternalInstance;
18162 }
18163 }
18164
18165 function constructClassInstance(workInProgress, ctor, props) {
18166 var isLegacyContextConsumer = false;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…