nuxt-hs-ui 2.1.10 → 2.1.11

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.15.0"
6
6
  },
7
- "version": "2.1.10",
7
+ "version": "2.1.11",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -10,7 +10,14 @@
10
10
  // [ node_modules ]
11
11
  import { TabulatorFull as Tabulator } from "tabulator-tables";
12
12
  // [ NUXT ]
13
- import { ref, watch, computed, onMounted, onUnmounted } from "#imports";
13
+ import {
14
+ ref,
15
+ watch,
16
+ computed,
17
+ onMounted,
18
+ // onUnmounted,
19
+ onBeforeUnmount,
20
+ } from "#imports";
14
21
  // ----------------------------------------------------------------------------
15
22
  // [ utils ]
16
23
  import { Option } from "../../utils/tabulator";
@@ -175,7 +182,10 @@ const initTabulator = () => {
175
182
  onMounted(() => {
176
183
  initTabulator();
177
184
  });
178
- onUnmounted(() => {
185
+
186
+ onBeforeUnmount(() => {
187
+ // console.log("onBeforeUnmount");
188
+ if (tabulator.value === null) return;
179
189
  tabulator.value.destroy();
180
190
  tabulator.value = null;
181
191
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
6
6
  "license": "MIT",