MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / adoptClassInstance

Function adoptClassInstance

code/controlled-uncontrolled/public/app.js:7682–7690  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

7680 }
7681
7682 function adoptClassInstance(workInProgress, instance) {
7683 instance.updater = updater;
7684 workInProgress.stateNode = instance;
7685 // The instance needs access to the fiber so that it can schedule updates
7686 set(instance, workInProgress);
7687 {
7688 instance._reactInternalInstance = fakeInternalInstance;
7689 }
7690 }
7691
7692 function constructClassInstance(workInProgress, props) {
7693 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected