Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TanStack/query
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.49.2
Choose a base ref
...
head repository: TanStack/query
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.50.1
Choose a head ref
  • 7 commits
  • 112 files changed
  • 3 contributors

Commits on Jul 1, 2024

  1. tests(svelte-query): Reorganise for multiple components per test (#7654)

    * Move tests
    
    * Add useIsFetching test, disabled createQuery test
    
    * Add QueryCacheProvider test
    lachlancollins authored Jul 1, 2024
    Copy the full SHA
    f1cdea9 View commit details

Commits on Jul 2, 2024

  1. tests(svelte-query): Increase test coverage (#7659)

    * tests(svelte-query): Add createInfiniteQuery, useIsMutating
    
    * Add infiniteQueryOptions, update context
    lachlancollins authored Jul 2, 2024
    Copy the full SHA
    941ba88 View commit details

Commits on Jul 3, 2024

  1. feat(eslint-plugin-query): Add compatibility with flat config (#7663)

    * feat(eslint-plugin-query): Add flat config compatibility
    
    * Add flat/recommended
    
    * Fix types
    
    * Use in basic-typescript
    
    * Load plugin with flat/recommended
    
    * Update docs
    
    * Add react and react-hooks back
    
    * Remove test
    
    * Fix attw
    lachlancollins authored Jul 3, 2024
    Copy the full SHA
    98547b6 View commit details
  2. release: v5.50.0

    tannerlinsley committed Jul 3, 2024
    Copy the full SHA
    af93a23 View commit details
  3. docs(react-query): Correct links in usePrefetchQuery (#7658)

    87xie authored Jul 3, 2024
    Copy the full SHA
    70c40e7 View commit details

Commits on Jul 5, 2024

  1. fix: Update package.json fields (#7674)

    lachlancollins authored Jul 5, 2024
    Copy the full SHA
    f2741d1 View commit details
  2. release: v5.50.1

    tannerlinsley committed Jul 5, 2024
    Copy the full SHA
    e792751 View commit details
Showing with 1,214 additions and 764 deletions.
  1. +47 −13 docs/eslint/eslint-plugin-query.md
  2. +2 −2 docs/framework/react/reference/usePrefetchInfiniteQuery.md
  3. +2 −2 docs/framework/react/reference/usePrefetchQuery.md
  4. +2 −2 examples/angular/basic/package.json
  5. +2 −2 examples/angular/infinite-query-with-max-pages/package.json
  6. +2 −2 examples/angular/router/package.json
  7. +2 −2 examples/angular/simple/package.json
  8. +3 −3 examples/react/algolia/package.json
  9. +2 −2 examples/react/auto-refetching/package.json
  10. +2 −2 examples/react/basic-graphql-request/package.json
  11. +0 −1 examples/react/basic-graphql-request/src/index.jsx
  12. +0 −7 examples/react/basic-typescript/.eslintrc
  13. +19 −0 examples/react/basic-typescript/eslint.config.js
  14. +5 −5 examples/react/basic-typescript/package.json
  15. +0 −1 examples/react/basic-typescript/src/index.tsx
  16. +1 −1 examples/react/basic-typescript/tsconfig.json
  17. +3 −3 examples/react/basic/package.json
  18. +0 −1 examples/react/basic/src/index.jsx
  19. +2 −2 examples/react/default-query-function/package.json
  20. +0 −1 examples/react/default-query-function/src/index.jsx
  21. +2 −2 examples/react/infinite-query-with-max-pages/package.json
  22. +2 −2 examples/react/load-more-infinite-scroll/package.json
  23. +2 −2 examples/react/nextjs-app-prefetching/package.json
  24. +3 −3 examples/react/nextjs-suspense-streaming/package.json
  25. +2 −2 examples/react/nextjs/package.json
  26. +4 −4 examples/react/offline/package.json
  27. +2 −2 examples/react/optimistic-updates-cache/package.json
  28. +2 −2 examples/react/optimistic-updates-ui/package.json
  29. +2 −2 examples/react/pagination/package.json
  30. +2 −2 examples/react/playground/package.json
  31. +2 −2 examples/react/prefetching/package.json
  32. +2 −2 examples/react/react-native/package.json
  33. +2 −2 examples/react/react-router/package.json
  34. +2 −2 examples/react/rick-morty/package.json
  35. +2 −2 examples/react/shadow-dom/package.json
  36. +2 −2 examples/react/simple/package.json
  37. +0 −1 examples/react/simple/src/index.jsx
  38. +2 −2 examples/react/star-wars/package.json
  39. +2 −2 examples/react/suspense/package.json
  40. +2 −2 examples/solid/astro/package.json
  41. +2 −2 examples/solid/basic-graphql-request/package.json
  42. +2 −2 examples/solid/basic-typescript/package.json
  43. +2 −2 examples/solid/default-query-function/package.json
  44. +3 −3 examples/solid/simple/package.json
  45. +2 −2 examples/solid/solid-start-streaming/package.json
  46. +2 −2 examples/svelte/auto-refetching/package.json
  47. +2 −2 examples/svelte/basic/package.json
  48. +2 −2 examples/svelte/load-more-infinite-scroll/package.json
  49. +2 −2 examples/svelte/optimistic-updates-typescript/package.json
  50. +2 −2 examples/svelte/playground/package.json
  51. +2 −2 examples/svelte/simple/package.json
  52. +2 −2 examples/svelte/ssr/package.json
  53. +2 −2 examples/svelte/star-wars/package.json
  54. +1 −1 examples/vue/2.6-basic/package.json
  55. +1 −1 examples/vue/2.7-basic/package.json
  56. +2 −2 examples/vue/basic/package.json
  57. +1 −1 examples/vue/dependent-queries/package.json
  58. +1 −1 examples/vue/nuxt3/package.json
  59. +4 −4 examples/vue/persister/package.json
  60. +2 −2 examples/vue/simple/package.json
  61. +2 −3 package.json
  62. +19 −19 packages/angular-query-devtools-experimental/package.json
  63. +26 −26 packages/angular-query-experimental/package.json
  64. +3 −0 packages/eslint-plugin-query/.attw.json
  65. +15 −14 packages/eslint-plugin-query/package.json
  66. +0 −21 packages/eslint-plugin-query/src/__tests__/configs.test.ts
  67. +0 −34 packages/eslint-plugin-query/src/configs.ts
  68. +47 −2 packages/eslint-plugin-query/src/index.ts
  69. +14 −14 packages/query-async-storage-persister/package.json
  70. +12 −12 packages/query-broadcast-client-experimental/package.json
  71. +10 −6 packages/query-codemods/package.json
  72. +18 −18 packages/query-core/package.json
  73. +20 −16 packages/query-devtools/package.json
  74. +14 −14 packages/query-persist-client-core/package.json
  75. +15 −15 packages/query-sync-storage-persister/package.json
  76. +15 −15 packages/react-query-devtools/package.json
  77. +17 −13 packages/react-query-next-experimental/package.json
  78. +14 −14 packages/react-query-persist-client/package.json
  79. +19 −19 packages/react-query/package.json
  80. +18 −14 packages/solid-query-devtools/package.json
  81. +14 −14 packages/solid-query-persist-client/package.json
  82. +16 −16 packages/solid-query/package.json
  83. +13 −9 packages/svelte-query-devtools/package.json
  84. +16 −11 packages/svelte-query-persist-client/package.json
  85. +11 −10 packages/svelte-query/package.json
  86. +14 −0 packages/svelte-query/tests/QueryClientProvider/ChildComponent.svelte
  87. +14 −0 packages/svelte-query/tests/QueryClientProvider/ParentComponent.svelte
  88. +20 −0 packages/svelte-query/tests/QueryClientProvider/QueryClientProvider.test.ts
  89. +0 −8 packages/svelte-query/tests/context.test.ts
  90. +5 −0 packages/svelte-query/tests/context/BaseExample.svelte
  91. +18 −0 packages/svelte-query/tests/context/context.test.ts
  92. +19 −0 packages/svelte-query/tests/createInfiniteQuery/BaseExample.svelte
  93. +19 −0 packages/svelte-query/tests/createInfiniteQuery/createInfiniteQuery.test.ts
  94. +3 −3 packages/svelte-query/tests/{CreateMutation.svelte → createMutation/BaseExample.svelte}
  95. +4 −4 packages/svelte-query/tests/{ → createMutation}/createMutation.test.ts
  96. +2 −2 packages/svelte-query/tests/{CreateQueries.svelte → createQueries/BaseExample.svelte}
  97. +7 −7 packages/svelte-query/tests/{ → createQueries}/createQueries.test.ts
  98. +2 −2 packages/svelte-query/tests/{CreateQuery.svelte → createQuery/BaseExample.svelte}
  99. +25 −0 packages/svelte-query/tests/createQuery/DisabledExample.svelte
  100. +22 −8 packages/svelte-query/tests/{ → createQuery}/createQuery.test.ts
  101. +28 −0 packages/svelte-query/tests/infiniteQueryOptions/infiniteQueryOptions.test.ts
  102. +15 −15 packages/svelte-query/tests/{ → queryOptions}/queryOptions.test.ts
  103. +31 −0 packages/svelte-query/tests/useIsFetching/BaseExample.svelte
  104. +14 −0 packages/svelte-query/tests/useIsFetching/useIsFetching.test.ts
  105. +24 −0 packages/svelte-query/tests/useIsMutating/BaseExample.svelte
  106. +14 −0 packages/svelte-query/tests/useIsMutating/useIsMutating.test.ts
  107. +4 −4 packages/svelte-query/tests/{UseMutationState.svelte → useMutationState/BaseExample.svelte}
  108. +8 −8 packages/svelte-query/tests/{ → useMutationState}/useMutationState.test.ts
  109. +7 −0 packages/svelte-query/tests/utils.ts
  110. +8 −8 packages/vue-query-devtools/package.json
  111. +23 −23 packages/vue-query/package.json
  112. +320 −188 pnpm-lock.yaml
60 changes: 47 additions & 13 deletions docs/eslint/eslint-plugin-query.md
Original file line number Diff line number Diff line change
@@ -19,34 +19,68 @@ $ yarn add -D @tanstack/eslint-plugin-query
$ bun add -D @tanstack/eslint-plugin-query
```

## Usage
## Flat Config (`eslint.config.js`)

To enable all of the recommended rules for our plugin, add `plugin:@tanstack/eslint-plugin-query/recommended` in extends:
### Recommended setup

```json
{
"extends": ["plugin:@tanstack/eslint-plugin-query/recommended"]
}
To enable all of the recommended rules for our plugin, add the following config:

```js
import pluginQuery from '@tanstack/eslint-plugin-query'

export default [
...pluginQuery.configs['flat/recommended'],
// Any other config...
]
```

### Custom setup

Alternatively, you can load the plugin and configure only the rules you want to use:

```js
import pluginQuery from '@tanstack/eslint-plugin-query'

export default [
{
plugins: {
'@tanstack/query': pluginQuery,
},
rules: {
'@tanstack/query/exhaustive-deps': 'error',
},
},
// Any other config...
]
```

### Alternative config
## Legacy Config (`.eslintrc`)

Alternatively, add `@tanstack/eslint-plugin-query` to the plugins section of your `.eslintrc` configuration file:
### Recommended setup

To enable all of the recommended rules for our plugin, add `plugin:@tanstack/eslint-plugin-query/recommended` in extends:

```json
{
"plugins": ["@tanstack/query"]
"extends": ["plugin:@tanstack/eslint-plugin-query/recommended"]
}
```

Then configure the rules you want to use under the rules section:
### Custom setup

Alternatively, add `@tanstack/eslint-plugin-query` to the plugins section, and configure the rules you want to use:

```json
{
"plugins": ["@tanstack/query"],
"rules": {
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "warn",
"@tanstack/query/stable-query-client": "error"
"@tanstack/query/exhaustive-deps": "error"
}
}
```

## Rules

- [@tanstack/query/exhaustive-deps](../exhaustive-deps)
- [@tanstack/query/no-rest-destructuring](../exhaustive-deps)
- [@tanstack/query/stable-query-client](../exhaustive-deps)
4 changes: 2 additions & 2 deletions docs/framework/react/reference/usePrefetchInfiniteQuery.md
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ usePrefetchInfiniteQuery(options)

**Options**

You can pass everything to `usePrefetchInfiniteQuery` that you can pass to [`queryClient.prefetchInfiniteQuery`](../../../reference/QueryClient#queryclientprefetchinfinitequery). Remember that some of them are required as below:
You can pass everything to `usePrefetchInfiniteQuery` that you can pass to [`queryClient.prefetchInfiniteQuery`](../../../../reference/QueryClient#queryclientprefetchinfinitequery). Remember that some of them are required as below:

- `queryKey: QueryKey`

@@ -34,4 +34,4 @@ You can pass everything to `usePrefetchInfiniteQuery` that you can pass to [`que

- **Returns**

The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses [`useSuspenseInfiniteQuery`](../reference/useSuspenseInfiniteQuery)
The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses [`useSuspenseInfiniteQuery`](../useSuspenseInfiniteQuery)
4 changes: 2 additions & 2 deletions docs/framework/react/reference/usePrefetchQuery.md
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ usePrefetchQuery(options)

**Options**

You can pass everything to `usePrefetchQuery` that you can pass to [`queryClient.prefetchQuery`](../../../reference/QueryClient#queryclientprefetchquery). Remember that some of them are required as below:
You can pass everything to `usePrefetchQuery` that you can pass to [`queryClient.prefetchQuery`](../../../../reference/QueryClient#queryclientprefetchquery). Remember that some of them are required as below:

- `queryKey: QueryKey`

@@ -21,4 +21,4 @@ You can pass everything to `usePrefetchQuery` that you can pass to [`queryClient

**Returns**

The `usePrefetchQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses [`useSuspenseQuery`](../reference/useSuspenseQuery).
The `usePrefetchQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses [`useSuspenseQuery`](../useSuspenseQuery).
4 changes: 2 additions & 2 deletions examples/angular/basic/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@angular/core": "^17.3.10",
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.49.1",
"@tanstack/angular-query-experimental": "^5.50.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -23,7 +23,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.49.1",
"@tanstack/angular-query-devtools-experimental": "^5.50.1",
"typescript": "5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/angular/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@angular/core": "^17.3.10",
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.49.1",
"@tanstack/angular-query-experimental": "^5.50.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -23,7 +23,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.49.1",
"@tanstack/angular-query-devtools-experimental": "^5.50.1",
"typescript": "5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/angular/router/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@angular/router": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.49.1",
"@tanstack/angular-query-experimental": "^5.50.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -24,7 +24,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.49.1",
"@tanstack/angular-query-devtools-experimental": "^5.50.1",
"typescript": "5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/angular/simple/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@angular/router": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.49.1",
"@tanstack/angular-query-experimental": "^5.50.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -24,7 +24,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.49.1",
"@tanstack/angular-query-devtools-experimental": "^5.50.1",
"typescript": "5.3.3"
}
}
6 changes: 3 additions & 3 deletions examples/react/algolia/package.json
Original file line number Diff line number Diff line change
@@ -11,14 +11,14 @@
"dependencies": {
"@algolia/client-search": "4.23.3",
"@algolia/transporter": "4.23.3",
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"algoliasearch": "4.23.3",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.49.1",
"@tanstack/eslint-plugin-query": "^5.50.1",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
4 changes: 2 additions & 2 deletions examples/react/auto-refetching/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.2.4",
4 changes: 2 additions & 2 deletions examples/react/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"graphql": "^16.8.1",
"graphql-request": "^7.0.1",
"react": "19.0.0-rc-4c2e457c7c-20240522",
1 change: 0 additions & 1 deletion examples/react/basic-graphql-request/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
import React from 'react'
import ReactDOM from 'react-dom/client'
import {
7 changes: 0 additions & 7 deletions examples/react/basic-typescript/.eslintrc

This file was deleted.

19 changes: 19 additions & 0 deletions examples/react/basic-typescript/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { tanstackConfig } from '@tanstack/config/eslint'
import pluginQuery from '@tanstack/eslint-plugin-query'
import pluginReact from '@eslint-react/eslint-plugin'
import pluginReactHooks from 'eslint-plugin-react-hooks'

export default [
...tanstackConfig,
...pluginQuery.configs['flat/recommended'],
pluginReact.configs.recommended,
{
plugins: {
'react-hooks': pluginReactHooks,
},
rules: {
'react-hooks/exhaustive-deps': 'error',
'react-hooks/rules-of-hooks': 'error',
},
},
]
10 changes: 5 additions & 5 deletions examples/react/basic-typescript/package.json
Original file line number Diff line number Diff line change
@@ -9,16 +9,16 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/query-sync-storage-persister": "^5.49.1",
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query-persist-client": "^5.49.2",
"@tanstack/query-sync-storage-persister": "^5.50.1",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"@tanstack/react-query-persist-client": "^5.50.1",
"axios": "^1.6.8",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.49.1",
"@tanstack/eslint-plugin-query": "^5.50.1",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
1 change: 0 additions & 1 deletion examples/react/basic-typescript/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
import * as React from 'react'
import ReactDOM from 'react-dom/client'
import axios from 'axios'
2 changes: 1 addition & 1 deletion examples/react/basic-typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -20,5 +20,5 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"]
"include": ["src", "eslint.config.js"]
}
6 changes: 3 additions & 3 deletions examples/react/basic/package.json
Original file line number Diff line number Diff line change
@@ -8,14 +8,14 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"axios": "^1.6.8",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.49.1",
"@tanstack/eslint-plugin-query": "^5.50.1",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^5.2.11"
},
1 change: 0 additions & 1 deletion examples/react/basic/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
import React from 'react'
import ReactDOM from 'react-dom/client'
import axios from 'axios'
4 changes: 2 additions & 2 deletions examples/react/default-query-function/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"axios": "^1.6.8",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
1 change: 0 additions & 1 deletion examples/react/default-query-function/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
import React from 'react'
import ReactDOM from 'react-dom/client'
import axios from 'axios'
4 changes: 2 additions & 2 deletions examples/react/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.2.4",
4 changes: 2 additions & 2 deletions examples/react/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.2.4",
4 changes: 2 additions & 2 deletions examples/react/nextjs-app-prefetching/package.json
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"next": "^15.0.0-rc.0",
"react": "^19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "^19.0.0-rc-4c2e457c7c-20240522"
6 changes: 3 additions & 3 deletions examples/react/nextjs-suspense-streaming/package.json
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query-next-experimental": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"@tanstack/react-query-next-experimental": "^5.50.1",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
4 changes: 2 additions & 2 deletions examples/react/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query-devtools": "^5.49.2",
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"ky": "^1.2.4",
"next": "^14.2.4",
"react": "^18.2.0",
Loading