structured-fw 1.3.1 → 1.3.2
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.
|
@@ -79,8 +79,11 @@ export class ClientComponent extends EventEmitter {
|
|
|
79
79
|
}
|
|
80
80
|
this.isReady = true;
|
|
81
81
|
if (this.isRoot || isRedrawRoot) {
|
|
82
|
-
this.on('initializerExecuted', () => {
|
|
82
|
+
this.on('initializerExecuted', async () => {
|
|
83
83
|
this.emit('ready');
|
|
84
|
+
if (isRedraw) {
|
|
85
|
+
await this.emit('afterRedraw');
|
|
86
|
+
}
|
|
84
87
|
});
|
|
85
88
|
requestAnimationFrame(() => {
|
|
86
89
|
this.runInitializer(isRedraw);
|
|
@@ -243,7 +246,6 @@ export class ClientComponent extends EventEmitter {
|
|
|
243
246
|
});
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
|
-
await this.emit('afterRedraw');
|
|
247
249
|
}
|
|
248
250
|
initConditionals(node) {
|
|
249
251
|
const isSelf = node === undefined;
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"type": "module",
|
|
21
21
|
"main": "build/index",
|
|
22
|
-
"version": "1.3.
|
|
22
|
+
"version": "1.3.2",
|
|
23
23
|
"scripts": {
|
|
24
24
|
"develop": "tsc --watch",
|
|
25
25
|
"startDev": "cd build && nodemon --watch '../app/**/*' --watch '../build/**/*' -e js,html,hbs,css index.js",
|