Merge branch 'feature-process_polling-7.6' into feature-process_polling

This commit is contained in:
Alexandre Vryghem
2024-01-08 18:07:42 +01:00
2 changed files with 4 additions and 3 deletions

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'),
);
} }
/** /**

View File

@@ -196,7 +196,7 @@ export class ProcessDataService extends IdentifiableDataService<Process> impleme
return process$.pipe( return process$.pipe(
distinctUntilChanged((previous: RemoteData<Process>, current: RemoteData<Process>) => distinctUntilChanged((previous: RemoteData<Process>, current: RemoteData<Process>) =>
previous.payload.processStatus === current.payload.processStatus previous.payload?.processStatus === current.payload?.processStatus,
) )
); );
} }