mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +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;
|
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'),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user