mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
108915: Fixed issue where the observable would emit itself again even when the lastUpdated didn't change
This commit is contained in:
@@ -272,12 +272,13 @@ export class RemoteDataBuildService {
|
||||
return isStale(r2.state) ? r1 : r2;
|
||||
}
|
||||
}),
|
||||
distinctUntilKeyChanged('lastUpdated')
|
||||
);
|
||||
|
||||
const payload$ = this.buildPayload<T>(requestEntry$, href$, ...linksToFollow);
|
||||
|
||||
return this.toRemoteDataObservable<T>(requestEntry$, payload$);
|
||||
return this.toRemoteDataObservable<T>(requestEntry$, payload$).pipe(
|
||||
distinctUntilKeyChanged('lastUpdated'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user