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 {
1414 linkedSignal ,
1515 assertInInjectionContext ,
1616 signal ,
17- ResourceStatus ,
1817 computed ,
19- Resource ,
20- WritableSignal ,
2118 ResourceStreamItem ,
2219 type ValueEqualityFn ,
20+ ɵRuntimeError ,
21+ ɵRuntimeErrorCode ,
2322} from '@angular/core' ;
24- import { Subscription } from 'rxjs' ;
23+ import type { Subscription } from 'rxjs' ;
2524
2625import { HttpRequest } from './request' ;
2726import { HttpClient } from './client' ;
@@ -363,7 +362,12 @@ class HttpResourceImpl<T>
363362 } ,
364363 complete : ( ) => {
365364 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+ } ) ;
367371 }
368372 abortSignal . removeEventListener ( 'abort' , onAbort ) ;
369373 } ,
You can’t perform that action at this time.
0 commit comments