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

Function adoptClassInstance

code/one-direction-data-flow/public/app.js:8231–8239  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

8229 }
8230
8231 function adoptClassInstance(workInProgress, instance) {
8232 instance.updater = updater;
8233 workInProgress.stateNode = instance;
8234 // The instance needs access to the fiber so that it can schedule updates
8235 set(instance, workInProgress);
8236 {
8237 instance._reactInternalInstance = fakeInternalInstance;
8238 }
8239 }
8240
8241 function constructClassInstance(workInProgress, props) {
8242 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected