sprintify-ui 0.0.104 → 0.0.105
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/sprintify-ui.es.js +4978 -4971
- package/package.json +1 -1
- package/src/components/BaseDataIterator.vue +14 -0
package/package.json
CHANGED
|
@@ -288,6 +288,12 @@ const route = useRoute();
|
|
|
288
288
|
const router = useRouter();
|
|
289
289
|
const routeName = route.name;
|
|
290
290
|
|
|
291
|
+
let willUnmount = false;
|
|
292
|
+
|
|
293
|
+
onBeforeUnmount(() => {
|
|
294
|
+
willUnmount = true;
|
|
295
|
+
});
|
|
296
|
+
|
|
291
297
|
const width = ref(800);
|
|
292
298
|
useResizeObserver(dataIteratorNode, () => {
|
|
293
299
|
width.value = dataIteratorNode.value?.clientWidth ?? 800;
|
|
@@ -487,6 +493,10 @@ function onRouteChange() {
|
|
|
487
493
|
return;
|
|
488
494
|
}
|
|
489
495
|
|
|
496
|
+
if (willUnmount) {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
|
|
490
500
|
// Stop if route was changed
|
|
491
501
|
if (route.name != routeName) {
|
|
492
502
|
return;
|
|
@@ -528,6 +538,10 @@ function fetchWithoutLoading(force = false) {
|
|
|
528
538
|
}
|
|
529
539
|
|
|
530
540
|
function fetch(force = false, showLoading = true) {
|
|
541
|
+
if (willUnmount) {
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
|
|
531
545
|
const urlSplit = url.value.split(/[?#]/);
|
|
532
546
|
|
|
533
547
|
const baseUrl = urlSplit[0];
|