[Staleness] Handle Overlay Plots in Stacked Plots and removing LAD Tables from LAD Table Sets (#6281)
* add handling for composition items (ex overlay plot) in stacked plots, fix swg staleness provider isStale method response * typo * removing staleness listeners when ladtable is remove * addressing pr comments for this component * address changes requested for lad table sets * had to update is-stale for the row since we used combined keys in lad table sets now
This commit is contained in:
@@ -43,10 +43,7 @@ export default class SinewaveLimitProvider extends EventEmitter {
|
||||
|
||||
isStale(domainObject, options) {
|
||||
if (!this.#providingStaleness(domainObject)) {
|
||||
return Promise.resolve({
|
||||
isStale: false,
|
||||
utc: 0
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const id = this.#getObjectKeyString(domainObject);
|
||||
@@ -55,7 +52,10 @@ export default class SinewaveLimitProvider extends EventEmitter {
|
||||
this.#createObserver(id);
|
||||
}
|
||||
|
||||
return Promise.resolve(this.#observingStaleness[id].isStale);
|
||||
return Promise.resolve({
|
||||
isStale: this.#observingStaleness[id].isStale,
|
||||
utc: Date.now()
|
||||
});
|
||||
}
|
||||
|
||||
subscribeToStaleness(domainObject, callback) {
|
||||
|
||||
Reference in New Issue
Block a user