File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,6 +341,11 @@ export class BaseDataService<T extends CacheableObject> implements HALDataServic
341341 }
342342 }
343343
344+ /**
345+ * Checks for the provided href whether a response is already cached
346+ * @param href$ The url for which to check whether there is a cached response.
347+ * Can be a string or an Observable<string>
348+ */
344349 hasCachedResponse ( href$ : string | Observable < string > ) : Observable < boolean > {
345350 if ( isNotEmpty ( href$ ) ) {
346351 if ( typeof href$ === 'string' ) {
@@ -359,6 +364,11 @@ export class BaseDataService<T extends CacheableObject> implements HALDataServic
359364 throw new Error ( `Can't check whether there is a cached response for an empty href$` ) ;
360365 }
361366
367+ /**
368+ * Checks for the provided href whether an ERROR response is currently cached
369+ * @param href$ The url for which to check whether there is a cached ERROR response.
370+ * Can be a string or an Observable<string>
371+ */
362372 hasCachedErrorResponse ( href$ : string | Observable < string > ) : Observable < boolean > {
363373 return this . hasCachedResponse ( href$ ) . pipe (
364374 switchMap ( ( hasCachedResponse ) => {
You can’t perform that action at this time.
0 commit comments