@tanstack/react-query 4.7.2 → 4.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-query",
3
- "version": "4.7.2",
3
+ "version": "4.8.0",
4
4
  "description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "react-error-boundary": "^3.1.4"
41
41
  },
42
42
  "dependencies": {
43
- "@tanstack/query-core": "4.7.2",
43
+ "@tanstack/query-core": "4.8.0",
44
44
  "use-sync-external-store": "^1.2.0"
45
45
  },
46
46
  "peerDependencies": {
@@ -60,7 +60,7 @@
60
60
  "clean": "rm -rf ./build",
61
61
  "test:codemods": "../../node_modules/.bin/jest --config codemods/jest.config.js",
62
62
  "test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
63
- "test:jest": "yarn test:codemods && ../../node_modules/.bin/jest --config jest.config.js",
64
- "test:jest:dev": "yarn test:jest --watch"
63
+ "test:jest": "pnpm test:codemods && ../../node_modules/.bin/jest --config jest.config.js",
64
+ "test:jest:dev": "pnpm test:jest --watch"
65
65
  }
66
66
  }
@@ -84,6 +84,7 @@ describe('useInfiniteQuery', () => {
84
84
  isFetchingNextPage: false,
85
85
  isFetchingPreviousPage: false,
86
86
  isLoading: true,
87
+ isInitialLoading: true,
87
88
  isLoadingError: false,
88
89
  isPlaceholderData: false,
89
90
  isPreviousData: false,
@@ -116,6 +117,7 @@ describe('useInfiniteQuery', () => {
116
117
  isFetchingNextPage: false,
117
118
  isFetchingPreviousPage: false,
118
119
  isLoading: false,
120
+ isInitialLoading: false,
119
121
  isLoadingError: false,
120
122
  isPlaceholderData: false,
121
123
  isPreviousData: false,
@@ -240,6 +240,7 @@ describe('useQuery', () => {
240
240
  isFetching: true,
241
241
  isPaused: false,
242
242
  isLoading: true,
243
+ isInitialLoading: true,
243
244
  isLoadingError: false,
244
245
  isPlaceholderData: false,
245
246
  isPreviousData: false,
@@ -266,6 +267,7 @@ describe('useQuery', () => {
266
267
  isFetching: false,
267
268
  isPaused: false,
268
269
  isLoading: false,
270
+ isInitialLoading: false,
269
271
  isLoadingError: false,
270
272
  isPlaceholderData: false,
271
273
  isPreviousData: false,
@@ -322,6 +324,7 @@ describe('useQuery', () => {
322
324
  isFetching: true,
323
325
  isPaused: false,
324
326
  isLoading: true,
327
+ isInitialLoading: true,
325
328
  isLoadingError: false,
326
329
  isPlaceholderData: false,
327
330
  isPreviousData: false,
@@ -348,6 +351,7 @@ describe('useQuery', () => {
348
351
  isFetching: true,
349
352
  isPaused: false,
350
353
  isLoading: true,
354
+ isInitialLoading: true,
351
355
  isLoadingError: false,
352
356
  isPlaceholderData: false,
353
357
  isPreviousData: false,
@@ -374,6 +378,7 @@ describe('useQuery', () => {
374
378
  isFetching: false,
375
379
  isPaused: false,
376
380
  isLoading: false,
381
+ isInitialLoading: false,
377
382
  isLoadingError: true,
378
383
  isPlaceholderData: false,
379
384
  isPreviousData: false,