File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,15 @@ function lazyInitializer<T>(payload: Payload<T>): T {
59
59
// end up fixing it if the resolution was a concurrency bug.
60
60
thenable . then (
61
61
moduleObject => {
62
- if ( payload . _status === Pending ) {
62
+ if ( payload . _status === Pending || payload . _status === Uninitialized ) {
63
63
// Transition to the next state.
64
64
const resolved : ResolvedPayload < T > = (payload: any);
65
65
resolved._status = Resolved;
66
66
resolved._result = moduleObject;
67
67
}
68
68
} ,
69
69
error => {
70
- if ( payload . _status === Pending ) {
70
+ if ( payload . _status === Pending || payload . _status === Uninitialized ) {
71
71
// Transition to the next state.
72
72
const rejected : RejectedPayload = ( payload : any ) ;
73
73
rejected . _status = Rejected ;
You can’t perform that action at this time.
0 commit comments