@mintjamsinc/ichigojs 0.1.12 → 0.1.13
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.
- package/dist/ichigo.esm.js +11 -2
- package/dist/ichigo.esm.js.map +1 -1
- package/dist/ichigo.esm.min.js +1 -1
- package/dist/ichigo.esm.min.js.map +1 -1
- package/dist/ichigo.umd.js +11 -2
- package/dist/ichigo.umd.js.map +1 -1
- package/dist/ichigo.umd.min.js +1 -1
- package/dist/ichigo.umd.min.js.map +1 -1
- package/dist/types/ichigo/VApplication.d.ts +4 -0
- package/package.json +1 -1
package/dist/ichigo.esm.js
CHANGED
@@ -7430,8 +7430,7 @@ class VComponentDirective {
|
|
7430
7430
|
*/
|
7431
7431
|
cleanupComponent() {
|
7432
7432
|
if (this.#childApp) {
|
7433
|
-
|
7434
|
-
// this.#childApp.unmount();
|
7433
|
+
this.#childApp.unmount();
|
7435
7434
|
this.#childApp = undefined;
|
7436
7435
|
}
|
7437
7436
|
this.#isActivated = false;
|
@@ -11217,6 +11216,16 @@ class VApplication {
|
|
11217
11216
|
this.#vNode.update();
|
11218
11217
|
this.#logger.info('Application mounted.');
|
11219
11218
|
}
|
11219
|
+
/**
|
11220
|
+
* Unmounts the application and cleans up resources.
|
11221
|
+
*/
|
11222
|
+
unmount() {
|
11223
|
+
if (this.#vNode) {
|
11224
|
+
this.#vNode.destroy();
|
11225
|
+
this.#vNode = undefined;
|
11226
|
+
}
|
11227
|
+
this.#logger.info('Application unmounted.');
|
11228
|
+
}
|
11220
11229
|
/**
|
11221
11230
|
* Creates a child application instance with the same registries.
|
11222
11231
|
* @param options The application options for the child.
|