File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,13 @@ import {
14
14
linkedSignal ,
15
15
assertInInjectionContext ,
16
16
signal ,
17
- ResourceStatus ,
18
17
computed ,
19
- Resource ,
20
- WritableSignal ,
21
18
ResourceStreamItem ,
22
19
type ValueEqualityFn ,
20
+ ɵRuntimeError ,
21
+ ɵRuntimeErrorCode ,
23
22
} from '@angular/core' ;
24
- import { Subscription } from 'rxjs' ;
23
+ import type { Subscription } from 'rxjs' ;
25
24
26
25
import { HttpRequest } from './request' ;
27
26
import { HttpClient } from './client' ;
@@ -363,7 +362,12 @@ class HttpResourceImpl<T>
363
362
} ,
364
363
complete : ( ) => {
365
364
if ( resolve ) {
366
- send ( { error : new Error ( 'Resource completed before producing a value' ) } ) ;
365
+ send ( {
366
+ error : new ɵRuntimeError (
367
+ ɵRuntimeErrorCode . RESOURCE_COMPLETED_BEFORE_PRODUCING_VALUE ,
368
+ ngDevMode && 'Resource completed before producing a value' ,
369
+ ) ,
370
+ } ) ;
367
371
}
368
372
abortSignal . removeEventListener ( 'abort' , onAbort ) ;
369
373
} ,
You can’t perform that action at this time.
0 commit comments