diff --git a/webapp/packages/core-data-context/src/DataContext/TempDataContext.ts b/webapp/packages/core-data-context/src/DataContext/TempDataContext.ts index 98e17d2c6b..35aae3fadf 100644 --- a/webapp/packages/core-data-context/src/DataContext/TempDataContext.ts +++ b/webapp/packages/core-data-context/src/DataContext/TempDataContext.ts @@ -101,11 +101,13 @@ export class TempDataContext implements IDataContext { getOwn(context: DataContextGetter): T | undefined { this.atom.reportObserved(); + const targetOwn = this.target.getOwn(context); + if (this.map.has(context)) { return this.map.get(context); } - return this.target.getOwn(context); + return targetOwn; } set(context: DataContextGetter, value: T): DeleteVersionedContextCallback { @@ -178,6 +180,8 @@ export class TempDataContext implements IDataContext { for (const [key, value] of this.map) { this.target.set(key, value); } + + this.atom.reportChanged(); } private planFlush(): void {