Skip to content

Commit 443b161

Browse files
authored
Merge branch 'main' into patch-1
2 parents 7f03037 + bd094f8 commit 443b161

File tree

77 files changed

+295
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+295
-240
lines changed

docs/framework/react/guides/advanced-ssr.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,7 @@ Then, all we need to do is provide a `HydrationBoundary`, but we don't need to `
390390

391391
```tsx
392392
// app/posts/page.jsx
393-
import {
394-
dehydrate,
395-
HydrationBoundary,
396-
QueryClient,
397-
} from '@tanstack/react-query'
393+
import { dehydrate, HydrationBoundary } from '@tanstack/react-query'
398394
import { getQueryClient } from './get-query-client'
399395
import Posts from './posts'
400396

docs/framework/react/reference/useQuery.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,12 @@ const {
8888
- This function receives a `retryAttempt` integer and the actual Error and returns the delay to apply before the next attempt in milliseconds.
8989
- A function like `attempt => Math.min(attempt > 1 ? 2 ** attempt * 1000 : 1000, 30 * 1000)` applies exponential backoff.
9090
- A function like `attempt => attempt * 1000` applies linear backoff.
91-
- `staleTime: number | Infinity`
91+
- `staleTime: number | ((query: Query) => number)`
9292
- Optional
9393
- Defaults to `0`
9494
- The time in milliseconds after data is considered stale. This value only applies to the hook it is defined on.
9595
- If set to `Infinity`, the data will never be considered stale
96+
- If set to a function, the function will be executed with the query to compute a `staleTime`.
9697
- `gcTime: number | Infinity`
9798
- Defaults to `5 * 60 * 1000` (5 minutes) or `Infinity` during SSR
9899
- The time in milliseconds that unused/inactive cache data remains in memory. When a query's cache becomes unused or inactive, that cache data will be garbage collected after this duration. When different garbage collection times are specified, the longest one will be used.

examples/angular/basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@angular/core": "^17.3.10",
1515
"@angular/platform-browser": "^17.3.10",
1616
"@angular/platform-browser-dynamic": "^17.3.10",
17-
"@tanstack/angular-query-experimental": "^5.40.1",
17+
"@tanstack/angular-query-experimental": "^5.44.0",
1818
"rxjs": "^7.8.1",
1919
"tslib": "^2.6.2",
2020
"zone.js": "^0.14.6"
@@ -23,7 +23,7 @@
2323
"@angular-devkit/build-angular": "^17.3.8",
2424
"@angular/cli": "^17.3.8",
2525
"@angular/compiler-cli": "^17.3.10",
26-
"@tanstack/angular-query-devtools-experimental": "^5.40.1",
26+
"@tanstack/angular-query-devtools-experimental": "^5.44.0",
2727
"typescript": "5.3.3"
2828
}
2929
}

examples/angular/infinite-query-with-max-pages/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@angular/core": "^17.3.10",
1515
"@angular/platform-browser": "^17.3.10",
1616
"@angular/platform-browser-dynamic": "^17.3.10",
17-
"@tanstack/angular-query-experimental": "^5.40.1",
17+
"@tanstack/angular-query-experimental": "^5.44.0",
1818
"rxjs": "^7.8.1",
1919
"tslib": "^2.6.2",
2020
"zone.js": "^0.14.6"
@@ -23,7 +23,7 @@
2323
"@angular-devkit/build-angular": "^17.3.8",
2424
"@angular/cli": "^17.3.8",
2525
"@angular/compiler-cli": "^17.3.10",
26-
"@tanstack/angular-query-devtools-experimental": "^5.40.1",
26+
"@tanstack/angular-query-devtools-experimental": "^5.44.0",
2727
"typescript": "5.3.3"
2828
}
2929
}

examples/angular/router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@angular/platform-browser": "^17.3.10",
1616
"@angular/platform-browser-dynamic": "^17.3.10",
1717
"@angular/router": "^17.3.10",
18-
"@tanstack/angular-query-experimental": "^5.40.1",
18+
"@tanstack/angular-query-experimental": "^5.44.0",
1919
"rxjs": "^7.8.1",
2020
"tslib": "^2.6.2",
2121
"zone.js": "^0.14.6"
@@ -24,7 +24,7 @@
2424
"@angular-devkit/build-angular": "^17.3.8",
2525
"@angular/cli": "^17.3.8",
2626
"@angular/compiler-cli": "^17.3.10",
27-
"@tanstack/angular-query-devtools-experimental": "^5.40.1",
27+
"@tanstack/angular-query-devtools-experimental": "^5.44.0",
2828
"typescript": "5.3.3"
2929
}
3030
}

examples/angular/simple/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@angular/platform-browser": "^17.3.10",
1616
"@angular/platform-browser-dynamic": "^17.3.10",
1717
"@angular/router": "^17.3.10",
18-
"@tanstack/angular-query-experimental": "^5.40.1",
18+
"@tanstack/angular-query-experimental": "^5.44.0",
1919
"rxjs": "^7.8.1",
2020
"tslib": "^2.6.2",
2121
"zone.js": "^0.14.6"
@@ -24,7 +24,7 @@
2424
"@angular-devkit/build-angular": "^17.3.8",
2525
"@angular/cli": "^17.3.8",
2626
"@angular/compiler-cli": "^17.3.10",
27-
"@tanstack/angular-query-devtools-experimental": "^5.40.1",
27+
"@tanstack/angular-query-devtools-experimental": "^5.44.0",
2828
"typescript": "5.3.3"
2929
}
3030
}

examples/react/algolia/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"dependencies": {
1212
"@algolia/client-search": "4.23.3",
1313
"@algolia/transporter": "4.23.3",
14-
"@tanstack/react-query": "^5.40.1",
15-
"@tanstack/react-query-devtools": "^5.40.1",
14+
"@tanstack/react-query": "^5.44.0",
15+
"@tanstack/react-query-devtools": "^5.44.0",
1616
"algoliasearch": "4.23.3",
1717
"react": "19.0.0-rc-4c2e457c7c-20240522",
1818
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"

examples/react/auto-refetching/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"start": "next start"
88
},
99
"dependencies": {
10-
"@tanstack/react-query": "^5.40.1",
11-
"@tanstack/react-query-devtools": "^5.40.1",
10+
"@tanstack/react-query": "^5.44.0",
11+
"@tanstack/react-query-devtools": "^5.44.0",
1212
"axios": "^1.6.8",
1313
"isomorphic-unfetch": "4.0.2",
1414
"next": "^14.0.0",

examples/react/basic-graphql-request/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@tanstack/react-query": "^5.40.1",
12-
"@tanstack/react-query-devtools": "^5.40.1",
11+
"@tanstack/react-query": "^5.44.0",
12+
"@tanstack/react-query-devtools": "^5.44.0",
1313
"graphql": "^16.8.1",
1414
"graphql-request": "^7.0.1",
1515
"react": "19.0.0-rc-4c2e457c7c-20240522",

examples/react/basic-typescript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"test:types": "tsc"
1010
},
1111
"dependencies": {
12-
"@tanstack/query-sync-storage-persister": "^5.40.0",
13-
"@tanstack/react-query": "^5.40.1",
14-
"@tanstack/react-query-devtools": "^5.40.1",
15-
"@tanstack/react-query-persist-client": "^5.40.1",
12+
"@tanstack/query-sync-storage-persister": "^5.44.0",
13+
"@tanstack/react-query": "^5.44.0",
14+
"@tanstack/react-query-devtools": "^5.44.0",
15+
"@tanstack/react-query-persist-client": "^5.44.0",
1616
"axios": "^1.6.8",
1717
"react": "19.0.0-rc-4c2e457c7c-20240522",
1818
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"

0 commit comments

Comments
 (0)