108915: Fixed issue where the observable would emit itself again even when the lastUpdated didn't change

This commit is contained in:
Alexandre Vryghem
2024-01-05 16:51:23 +01:00
parent 5400981751
commit 9e31f73f5e

View File

@@ -272,12 +272,13 @@ export class RemoteDataBuildService {
return isStale(r2.state) ? r1 : r2; return isStale(r2.state) ? r1 : r2;
} }
}), }),
distinctUntilKeyChanged('lastUpdated')
); );
const payload$ = this.buildPayload<T>(requestEntry$, href$, ...linksToFollow); const payload$ = this.buildPayload<T>(requestEntry$, href$, ...linksToFollow);
return this.toRemoteDataObservable<T>(requestEntry$, payload$); return this.toRemoteDataObservable<T>(requestEntry$, payload$).pipe(
distinctUntilKeyChanged('lastUpdated'),
);
} }
/** /**