dillon1000/react
Commit
Browse files Remove _ctor field from Lazy components (#18217)
* This type is all wrong and nothing cares because it's all any * Refine Flow types of Lazy Components We can type each condition. * Remove _ctor field from Lazy components This field is not needed because it's only used before we've initialized, and we don't have anything else to store before we've initialized. * Check for _ctor in case it's an older isomorphic that created it We try not to break across minors but it's no guarantee. * Move types and constants from shared to isomorphic The "react" package owns the data structure of the Lazy component. It creates it and decides how any downstream renderer may use it. * Move constants to shared Apparently we can't depend on react/src/ because the whole package is considered "external" as far as rollup is concerned.
Changed paths6 files
First-parent comparisonpackages/react-dom/src/server/ReactPartialRenderer.js ModifiedM packages/react-reconciler/src/ReactFiberLazyComponent.js ModifiedM packages/react/src/ReactLazy.js ModifiedM packages/shared/ReactLazyComponent.js ModifiedA packages/shared/ReactLazyStatusTags.js AddedM packages/shared/getComponentName.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…