@tanstack/solid-query 4.20.2 → 4.20.9
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/build/solid/{index.jsx → index.js} +0 -0
- package/build/umd/index.development.js +19 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +3 -3
- /package/src/{index.tsx → index.ts} +0 -0
|
File without changes
|
|
@@ -332,6 +332,8 @@
|
|
|
332
332
|
if (typeof AbortController === 'function') {
|
|
333
333
|
return new AbortController();
|
|
334
334
|
}
|
|
335
|
+
|
|
336
|
+
return;
|
|
335
337
|
}
|
|
336
338
|
function replaceData(prevData, data, options) {
|
|
337
339
|
// Use prev data if an isDataEqual function is defined and returns `true`
|
|
@@ -366,6 +368,8 @@
|
|
|
366
368
|
window.removeEventListener('focus', listener);
|
|
367
369
|
};
|
|
368
370
|
}
|
|
371
|
+
|
|
372
|
+
return;
|
|
369
373
|
};
|
|
370
374
|
}
|
|
371
375
|
|
|
@@ -447,6 +451,8 @@
|
|
|
447
451
|
window.removeEventListener('offline', listener);
|
|
448
452
|
};
|
|
449
453
|
}
|
|
454
|
+
|
|
455
|
+
return;
|
|
450
456
|
};
|
|
451
457
|
}
|
|
452
458
|
|
|
@@ -634,6 +640,8 @@
|
|
|
634
640
|
if (shouldPause()) {
|
|
635
641
|
return pause();
|
|
636
642
|
}
|
|
643
|
+
|
|
644
|
+
return;
|
|
637
645
|
}).then(() => {
|
|
638
646
|
if (isRetryCancelled) {
|
|
639
647
|
reject(error);
|
|
@@ -1821,6 +1829,8 @@
|
|
|
1821
1829
|
const nextPageParam = getNextPageParam(options, pages);
|
|
1822
1830
|
return typeof nextPageParam !== 'undefined' && nextPageParam !== null && nextPageParam !== false;
|
|
1823
1831
|
}
|
|
1832
|
+
|
|
1833
|
+
return;
|
|
1824
1834
|
}
|
|
1825
1835
|
/**
|
|
1826
1836
|
* Checks if there is a previous page.
|
|
@@ -1832,6 +1842,8 @@
|
|
|
1832
1842
|
const previousPageParam = getPreviousPageParam(options, pages);
|
|
1833
1843
|
return typeof previousPageParam !== 'undefined' && previousPageParam !== null && previousPageParam !== false;
|
|
1834
1844
|
}
|
|
1845
|
+
|
|
1846
|
+
return;
|
|
1835
1847
|
}
|
|
1836
1848
|
|
|
1837
1849
|
// CLASS
|
|
@@ -1843,6 +1855,7 @@
|
|
|
1843
1855
|
this.defaultOptions = config.defaultOptions || {};
|
|
1844
1856
|
this.queryDefaults = [];
|
|
1845
1857
|
this.mutationDefaults = [];
|
|
1858
|
+
this.mountCount = 0;
|
|
1846
1859
|
|
|
1847
1860
|
if (config.logger) {
|
|
1848
1861
|
this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.");
|
|
@@ -1850,6 +1863,8 @@
|
|
|
1850
1863
|
}
|
|
1851
1864
|
|
|
1852
1865
|
mount() {
|
|
1866
|
+
this.mountCount++;
|
|
1867
|
+
if (this.mountCount !== 1) return;
|
|
1853
1868
|
this.unsubscribeFocus = focusManager.subscribe(() => {
|
|
1854
1869
|
if (focusManager.isFocused()) {
|
|
1855
1870
|
this.resumePausedMutations();
|
|
@@ -1867,8 +1882,12 @@
|
|
|
1867
1882
|
unmount() {
|
|
1868
1883
|
var _this$unsubscribeFocu, _this$unsubscribeOnli;
|
|
1869
1884
|
|
|
1885
|
+
this.mountCount--;
|
|
1886
|
+
if (this.mountCount !== 0) return;
|
|
1870
1887
|
(_this$unsubscribeFocu = this.unsubscribeFocus) == null ? void 0 : _this$unsubscribeFocu.call(this);
|
|
1888
|
+
this.unsubscribeFocus = undefined;
|
|
1871
1889
|
(_this$unsubscribeOnli = this.unsubscribeOnline) == null ? void 0 : _this$unsubscribeOnli.call(this);
|
|
1890
|
+
this.unsubscribeOnline = undefined;
|
|
1872
1891
|
}
|
|
1873
1892
|
|
|
1874
1893
|
isFetching(arg1, arg2) {
|