@octanejs/tanstack-query 0.1.61 → 0.1.63
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/README.md +3 -3
- package/package.json +6 -6
- package/src/HydrationBoundary.tsrx +6 -7
package/README.md
CHANGED
|
@@ -50,9 +50,9 @@ function App() @{
|
|
|
50
50
|
- everything from `@tanstack/query-core` (`QueryClient`, `QueryCache`, observers,
|
|
51
51
|
`dehydrate`/`hydrate`, …), re-exported verbatim.
|
|
52
52
|
|
|
53
|
-
The whole `@tanstack/react-query` surface is bound. The separate companion
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
The whole `@tanstack/react-query` surface is bound. The separate companion package
|
|
54
|
+
`@tanstack/react-query-persist-client` is not included. The devtools live in
|
|
55
|
+
[`@octanejs/tanstack-query-devtools`](../tanstack-query-devtools).
|
|
56
56
|
|
|
57
57
|
## How it works
|
|
58
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/tanstack-query",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@tanstack/query-core": "5.102.8"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"octane": "^0.
|
|
46
|
+
"octane": "^0.11.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@tanstack/react-query": "5.102.8",
|
|
50
|
-
"@tsrx/react": "^0.
|
|
50
|
+
"@tsrx/react": "^0.4.5",
|
|
51
51
|
"esbuild": "^0.28.1",
|
|
52
|
-
"octane": "0.
|
|
52
|
+
"octane": "0.11.0",
|
|
53
53
|
"react": "19.2.7",
|
|
54
54
|
"react-dom": "19.2.7",
|
|
55
55
|
"vitest": "^4.1.10",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@testing-library/react-render-stream": "2.0.2",
|
|
58
58
|
"@testing-library/jest-dom": "^6.9.1",
|
|
59
59
|
"react-error-boundary": "4.1.2",
|
|
60
|
-
"@octanejs/testing-library": "0.1.
|
|
61
|
-
"@octanejs/react-error-boundary": "0.1.
|
|
60
|
+
"@octanejs/testing-library": "0.1.61",
|
|
61
|
+
"@octanejs/react-error-boundary": "0.1.43",
|
|
62
62
|
"@types/react": "^19.2.17",
|
|
63
63
|
"@types/react-dom": "^19.2.3",
|
|
64
64
|
"@tanstack/query-persist-client-core": "5.102.8"
|
|
@@ -42,10 +42,11 @@ export function HydrationBoundary(props: HydrationBoundaryProps) @{
|
|
|
42
42
|
} else {
|
|
43
43
|
const hydrationIsNewer =
|
|
44
44
|
dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt ||
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
(dehydratedQuery.promise &&
|
|
46
|
+
existingQuery.state.status !== 'pending' &&
|
|
47
|
+
existingQuery.state.fetchStatus !== 'fetching' &&
|
|
48
|
+
dehydratedQuery.dehydratedAt !== undefined &&
|
|
49
|
+
dehydratedQuery.dehydratedAt > existingQuery.state.dataUpdatedAt);
|
|
49
50
|
if (hydrationIsNewer) {
|
|
50
51
|
existingQueries.push(dehydratedQuery);
|
|
51
52
|
}
|
|
@@ -70,7 +71,5 @@ export function HydrationBoundary(props: HydrationBoundaryProps) @{
|
|
|
70
71
|
}
|
|
71
72
|
}, [client, hydrationQueue]);
|
|
72
73
|
|
|
73
|
-
<>
|
|
74
|
-
{props.children}
|
|
75
|
-
</>
|
|
74
|
+
<>{props.children}</>
|
|
76
75
|
}
|