Skip to content

Commit

Permalink
Merge branch 'feature-process_polling-7.6' into feature-process_polling
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Jan 8, 2024
2 parents d37cd18 + c91b99f commit 86d3883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/app/core/cache/builders/remote-data-build.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/data/processes/process-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class ProcessDataService extends IdentifiableDataService<Process> impleme

return process$.pipe(
distinctUntilChanged((previous: RemoteData<Process>, current: RemoteData<Process>) =>
previous.payload.processStatus === current.payload.processStatus
previous.payload?.processStatus === current.payload?.processStatus,
)
);
}
Expand Down

0 comments on commit 86d3883

Please sign in to comment.