Skip to content

Commit

Permalink
Try another way.
Browse files Browse the repository at this point in the history
  • Loading branch information
tealefristoe committed Oct 15, 2024
1 parent 49a9487 commit 06d0c1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/managers/notification_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ export default class NotificationManager {
}

async handleDataContextChange(/*iNotification: CODAP_Notification*/) {
if (!this.updatingStores) {
this.updatingStores = true;
action(async () => {
action(async () => {
if (!this.updatingStores) {
this.updatingStores = true;
console.log(`ooo handleDataContextChange`);
await this.domainStore.featureStore.updateWordListSpecs()
await this.domainStore.targetStore.updateFromCODAP()
})()
this.updatingStores = false;
} else {
console.log(`^^^ already updating stores`);
}
this.updatingStores = false;
} else {
console.log(`^^^ already updating stores`);
}
})()
}

async handleAttributesChange(/*iNotification: CODAP_Notification*/) {
Expand Down

0 comments on commit 06d0c1e

Please sign in to comment.