diff --git a/packages/react-reconciler/src/ReactFiberLazyComponent.js b/packages/react-reconciler/src/ReactFiberLazyComponent.js index 179262fa449c8..07fd7a70762de 100644 --- a/packages/react-reconciler/src/ReactFiberLazyComponent.js +++ b/packages/react-reconciler/src/ReactFiberLazyComponent.js @@ -47,7 +47,6 @@ export function readLazyComponentType(lazyComponent: LazyComponent): T { lazyComponent._status = Pending; const ctor = lazyComponent._ctor; const thenable = ctor(); - lazyComponent._result = thenable; thenable.then( moduleObject => { if (lazyComponent._status === Pending) { @@ -78,6 +77,7 @@ export function readLazyComponentType(lazyComponent: LazyComponent): T { if (lazyComponent._status === Resolved) { return lazyComponent._result; } + lazyComponent._result = thenable; throw thenable; } }