@sprucelabs/spruce-calendar-components 24.3.5 → 24.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -371,6 +371,7 @@ class RootSkillViewController extends AbstractSkillViewController {
|
|
|
371
371
|
return this.loadEvents();
|
|
372
372
|
}, RootSkillViewController.refreshInterval);
|
|
373
373
|
}
|
|
374
|
+
yield this.client.on('connection-status-change', this.handleStateChange);
|
|
374
375
|
});
|
|
375
376
|
}
|
|
376
377
|
handleStateChange(options) {
|
|
@@ -384,7 +385,7 @@ class RootSkillViewController extends AbstractSkillViewController {
|
|
|
384
385
|
destroy() {
|
|
385
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
386
387
|
clearInterval(this.loadEventInterval);
|
|
387
|
-
|
|
388
|
+
yield this.client.off('connection-status-change', this.handleStateChange);
|
|
388
389
|
});
|
|
389
390
|
}
|
|
390
391
|
setupCalendarEventListeners() {
|
|
@@ -330,7 +330,7 @@ class RootSkillViewController extends heartwood_view_controllers_1.AbstractSkill
|
|
|
330
330
|
return this.loadEvents();
|
|
331
331
|
}, RootSkillViewController.refreshInterval);
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
await this.client.on('connection-status-change', this.handleStateChange);
|
|
334
334
|
}
|
|
335
335
|
async handleStateChange(options) {
|
|
336
336
|
const { status } = options.payload;
|
|
@@ -340,7 +340,7 @@ class RootSkillViewController extends heartwood_view_controllers_1.AbstractSkill
|
|
|
340
340
|
}
|
|
341
341
|
async destroy() {
|
|
342
342
|
clearInterval(this.loadEventInterval);
|
|
343
|
-
|
|
343
|
+
await this.client.off('connection-status-change', this.handleStateChange);
|
|
344
344
|
}
|
|
345
345
|
async setupCalendarEventListeners() {
|
|
346
346
|
await Promise.all([
|