@tanstack/query-core 4.0.8 → 4.1.0
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/cjs/mutationCache.js.map +1 -1
- package/build/cjs/mutationObserver.js +10 -0
- package/build/cjs/mutationObserver.js.map +1 -1
- package/build/cjs/queryCache.js.map +1 -1
- package/build/cjs/queryClient.js +2 -6
- package/build/cjs/queryClient.js.map +1 -1
- package/build/cjs/queryObserver.js +8 -0
- package/build/cjs/queryObserver.js.map +1 -1
- package/build/esm/index.js +19 -6
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats.json +235 -229
- package/build/types/packages/query-core/src/mutationCache.d.ts +6 -1
- package/build/types/packages/query-core/src/queryCache.d.ts +6 -1
- package/build/umd/index.development.js +19 -6
- 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 +1 -1
- package/src/mutationCache.ts +7 -0
- package/src/mutationObserver.ts +9 -0
- package/src/queryCache.ts +7 -0
- package/src/queryClient.ts +10 -14
- package/src/queryObserver.ts +8 -0
- package/src/tests/queryObserver.test.tsx +19 -0
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages/query-core/src","children":[{"uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages/query-core/src","children":[{"uid":"bfcd-1","name":"subscribable.ts"},{"uid":"bfcd-3","name":"utils.ts"},{"uid":"bfcd-5","name":"focusManager.ts"},{"uid":"bfcd-7","name":"onlineManager.ts"},{"uid":"bfcd-9","name":"retryer.ts"},{"uid":"bfcd-11","name":"logger.ts"},{"uid":"bfcd-13","name":"notifyManager.ts"},{"uid":"bfcd-15","name":"removable.ts"},{"uid":"bfcd-17","name":"query.ts"},{"uid":"bfcd-19","name":"queryCache.ts"},{"uid":"bfcd-21","name":"mutation.ts"},{"uid":"bfcd-23","name":"mutationCache.ts"},{"uid":"bfcd-25","name":"infiniteQueryBehavior.ts"},{"uid":"bfcd-27","name":"queryClient.ts"},{"uid":"bfcd-29","name":"queryObserver.ts"},{"uid":"bfcd-31","name":"queriesObserver.ts"},{"uid":"bfcd-33","name":"infiniteQueryObserver.ts"},{"uid":"bfcd-35","name":"mutationObserver.ts"},{"uid":"bfcd-37","name":"hydration.ts"},{"uid":"bfcd-39","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"bfcd-1":{"renderedLength":505,"gzipLength":212,"brotliLength":0,"mainUid":"bfcd-0"},"bfcd-3":{"renderedLength":7458,"gzipLength":2159,"brotliLength":0,"mainUid":"bfcd-2"},"bfcd-5":{"renderedLength":2058,"gzipLength":703,"brotliLength":0,"mainUid":"bfcd-4"},"bfcd-7":{"renderedLength":1952,"gzipLength":627,"brotliLength":0,"mainUid":"bfcd-6"},"bfcd-9":{"renderedLength":4232,"gzipLength":1198,"brotliLength":0,"mainUid":"bfcd-8"},"bfcd-11":{"renderedLength":32,"gzipLength":49,"brotliLength":0,"mainUid":"bfcd-10"},"bfcd-13":{"renderedLength":1910,"gzipLength":628,"brotliLength":0,"mainUid":"bfcd-12"},"bfcd-15":{"renderedLength":681,"gzipLength":312,"brotliLength":0,"mainUid":"bfcd-14"},"bfcd-17":{"renderedLength":12983,"gzipLength":3114,"brotliLength":0,"mainUid":"bfcd-16"},"bfcd-19":{"renderedLength":2645,"gzipLength":753,"brotliLength":0,"mainUid":"bfcd-18"},"bfcd-21":{"renderedLength":7266,"gzipLength":1603,"brotliLength":0,"mainUid":"bfcd-20"},"bfcd-23":{"renderedLength":1889,"gzipLength":613,"brotliLength":0,"mainUid":"bfcd-22"},"bfcd-25":{"renderedLength":6170,"gzipLength":1403,"brotliLength":0,"mainUid":"bfcd-24"},"bfcd-27":{"renderedLength":9592,"gzipLength":1962,"brotliLength":0,"mainUid":"bfcd-26"},"bfcd-29":{"renderedLength":16600,"gzipLength":3623,"brotliLength":0,"mainUid":"bfcd-28"},"bfcd-31":{"renderedLength":4906,"gzipLength":1181,"brotliLength":0,"mainUid":"bfcd-30"},"bfcd-33":{"renderedLength":2330,"gzipLength":624,"brotliLength":0,"mainUid":"bfcd-32"},"bfcd-35":{"renderedLength":4060,"gzipLength":1017,"brotliLength":0,"mainUid":"bfcd-34"},"bfcd-37":{"renderedLength":3177,"gzipLength":941,"brotliLength":0,"mainUid":"bfcd-36"},"bfcd-39":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"bfcd-38"}},"nodeMetas":{"bfcd-0":{"id":"/packages/query-core/src/subscribable.ts","moduleParts":{"index.production.js":"bfcd-1"},"imported":[],"importedBy":[{"uid":"bfcd-18"},{"uid":"bfcd-28"},{"uid":"bfcd-30"},{"uid":"bfcd-22"},{"uid":"bfcd-34"},{"uid":"bfcd-4"},{"uid":"bfcd-6"}]},"bfcd-2":{"id":"/packages/query-core/src/utils.ts","moduleParts":{"index.production.js":"bfcd-3"},"imported":[],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-8"},{"uid":"bfcd-18"},{"uid":"bfcd-26"},{"uid":"bfcd-28"},{"uid":"bfcd-30"},{"uid":"bfcd-22"},{"uid":"bfcd-34"},{"uid":"bfcd-12"},{"uid":"bfcd-4"},{"uid":"bfcd-6"},{"uid":"bfcd-16"},{"uid":"bfcd-14"}]},"bfcd-4":{"id":"/packages/query-core/src/focusManager.ts","moduleParts":{"index.production.js":"bfcd-5"},"imported":[{"uid":"bfcd-0"},{"uid":"bfcd-2"}],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-8"},{"uid":"bfcd-26"},{"uid":"bfcd-28"}]},"bfcd-6":{"id":"/packages/query-core/src/onlineManager.ts","moduleParts":{"index.production.js":"bfcd-7"},"imported":[{"uid":"bfcd-0"},{"uid":"bfcd-2"}],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-8"},{"uid":"bfcd-26"}]},"bfcd-8":{"id":"/packages/query-core/src/retryer.ts","moduleParts":{"index.production.js":"bfcd-9"},"imported":[{"uid":"bfcd-4"},{"uid":"bfcd-6"},{"uid":"bfcd-2"}],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-28"},{"uid":"bfcd-16"},{"uid":"bfcd-20"}]},"bfcd-10":{"id":"/packages/query-core/src/logger.ts","moduleParts":{"index.production.js":"bfcd-11"},"imported":[],"importedBy":[{"uid":"bfcd-26"},{"uid":"bfcd-16"},{"uid":"bfcd-20"}]},"bfcd-12":{"id":"/packages/query-core/src/notifyManager.ts","moduleParts":{"index.production.js":"bfcd-13"},"imported":[{"uid":"bfcd-2"}],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-18"},{"uid":"bfcd-26"},{"uid":"bfcd-28"},{"uid":"bfcd-30"},{"uid":"bfcd-22"},{"uid":"bfcd-34"},{"uid":"bfcd-16"},{"uid":"bfcd-20"}]},"bfcd-14":{"id":"/packages/query-core/src/removable.ts","moduleParts":{"index.production.js":"bfcd-15"},"imported":[{"uid":"bfcd-2"}],"importedBy":[{"uid":"bfcd-16"},{"uid":"bfcd-20"}]},"bfcd-16":{"id":"/packages/query-core/src/query.ts","moduleParts":{"index.production.js":"bfcd-17"},"imported":[{"uid":"bfcd-2"},{"uid":"bfcd-10"},{"uid":"bfcd-12"},{"uid":"bfcd-8"},{"uid":"bfcd-14"}],"importedBy":[{"uid":"bfcd-18"}]},"bfcd-18":{"id":"/packages/query-core/src/queryCache.ts","moduleParts":{"index.production.js":"bfcd-19"},"imported":[{"uid":"bfcd-2"},{"uid":"bfcd-16"},{"uid":"bfcd-12"},{"uid":"bfcd-0"}],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-26"}]},"bfcd-20":{"id":"/packages/query-core/src/mutation.ts","moduleParts":{"index.production.js":"bfcd-21"},"imported":[{"uid":"bfcd-10"},{"uid":"bfcd-12"},{"uid":"bfcd-14"},{"uid":"bfcd-8"}],"importedBy":[{"uid":"bfcd-22"},{"uid":"bfcd-34"}]},"bfcd-22":{"id":"/packages/query-core/src/mutationCache.ts","moduleParts":{"index.production.js":"bfcd-23"},"imported":[{"uid":"bfcd-12"},{"uid":"bfcd-20"},{"uid":"bfcd-2"},{"uid":"bfcd-0"}],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-26"}]},"bfcd-24":{"id":"/packages/query-core/src/infiniteQueryBehavior.ts","moduleParts":{"index.production.js":"bfcd-25"},"imported":[],"importedBy":[{"uid":"bfcd-26"},{"uid":"bfcd-32"}]},"bfcd-26":{"id":"/packages/query-core/src/queryClient.ts","moduleParts":{"index.production.js":"bfcd-27"},"imported":[{"uid":"bfcd-2"},{"uid":"bfcd-18"},{"uid":"bfcd-22"},{"uid":"bfcd-4"},{"uid":"bfcd-6"},{"uid":"bfcd-12"},{"uid":"bfcd-24"},{"uid":"bfcd-10"}],"importedBy":[{"uid":"bfcd-38"}]},"bfcd-28":{"id":"/packages/query-core/src/queryObserver.ts","moduleParts":{"index.production.js":"bfcd-29"},"imported":[{"uid":"bfcd-2"},{"uid":"bfcd-12"},{"uid":"bfcd-4"},{"uid":"bfcd-0"},{"uid":"bfcd-8"}],"importedBy":[{"uid":"bfcd-38"},{"uid":"bfcd-30"},{"uid":"bfcd-32"}]},"bfcd-30":{"id":"/packages/query-core/src/queriesObserver.ts","moduleParts":{"index.production.js":"bfcd-31"},"imported":[{"uid":"bfcd-2"},{"uid":"bfcd-12"},{"uid":"bfcd-28"},{"uid":"bfcd-0"}],"importedBy":[{"uid":"bfcd-38"}]},"bfcd-32":{"id":"/packages/query-core/src/infiniteQueryObserver.ts","moduleParts":{"index.production.js":"bfcd-33"},"imported":[{"uid":"bfcd-28"},{"uid":"bfcd-24"}],"importedBy":[{"uid":"bfcd-38"}]},"bfcd-34":{"id":"/packages/query-core/src/mutationObserver.ts","moduleParts":{"index.production.js":"bfcd-35"},"imported":[{"uid":"bfcd-20"},{"uid":"bfcd-12"},{"uid":"bfcd-0"},{"uid":"bfcd-2"}],"importedBy":[{"uid":"bfcd-38"}]},"bfcd-36":{"id":"/packages/query-core/src/hydration.ts","moduleParts":{"index.production.js":"bfcd-37"},"imported":[],"importedBy":[{"uid":"bfcd-38"}]},"bfcd-38":{"id":"/packages/query-core/src/index.ts","moduleParts":{"index.production.js":"bfcd-39"},"imported":[{"uid":"bfcd-8"},{"uid":"bfcd-18"},{"uid":"bfcd-26"},{"uid":"bfcd-28"},{"uid":"bfcd-30"},{"uid":"bfcd-32"},{"uid":"bfcd-22"},{"uid":"bfcd-34"},{"uid":"bfcd-12"},{"uid":"bfcd-4"},{"uid":"bfcd-6"},{"uid":"bfcd-2"},{"uid":"bfcd-36"},{"uid":"bfcd-40"}],"importedBy":[],"isEntry":true},"bfcd-40":{"id":"/packages/query-core/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"bfcd-38"}]}},"env":{"rollup":"2.76.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|