sprintify-ui 0.10.25 → 0.10.26
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 +2852 -2848
- package/package.json +1 -1
- package/src/components/BaseDataIterator.vue +10 -1
package/package.json
CHANGED
|
@@ -198,7 +198,7 @@ const DEFAULT_QUERY = {
|
|
|
198
198
|
</script>
|
|
199
199
|
|
|
200
200
|
<script lang="ts" setup>
|
|
201
|
-
import { cloneDeep, debounce, merge, set, sortBy } from 'lodash';
|
|
201
|
+
import { cloneDeep, debounce, merge, set, sortBy, uniqueId } from 'lodash';
|
|
202
202
|
import hash from 'object-hash';
|
|
203
203
|
import { PropType } from 'vue';
|
|
204
204
|
import {
|
|
@@ -661,6 +661,8 @@ function fetchWithoutLoading(force = false) {
|
|
|
661
661
|
fetch(force, false);
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
+
let requestId = '';
|
|
665
|
+
|
|
664
666
|
function fetch(force = false, showLoading = true) {
|
|
665
667
|
if (willUnmount) {
|
|
666
668
|
return;
|
|
@@ -682,6 +684,9 @@ function fetch(force = false, showLoading = true) {
|
|
|
682
684
|
return;
|
|
683
685
|
}
|
|
684
686
|
|
|
687
|
+
const requestIdInternal = uniqueId();
|
|
688
|
+
requestId = requestIdInternal;
|
|
689
|
+
|
|
685
690
|
if (showLoading) {
|
|
686
691
|
loading.value = true;
|
|
687
692
|
}
|
|
@@ -691,6 +696,10 @@ function fetch(force = false, showLoading = true) {
|
|
|
691
696
|
http
|
|
692
697
|
.get(fullUrl)
|
|
693
698
|
.then((response) => {
|
|
699
|
+
if (requestIdInternal !== requestId) {
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
|
|
694
703
|
data.value = response.data;
|
|
695
704
|
error.value = false;
|
|
696
705
|
firstLoad.value = true;
|