@raf-query/react 0.5.3 → 0.5.4
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/CHANGELOG.md +8 -1
- package/dist/tanstack-router-shared.d.mts +12 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.4](https://github.com/KATT/raf-query/compare/0.5.3...0.5.4) (2026-10-14)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **core:** keep data written while a page loads ([#75](https://github.com/KATT/raf-query/issues/75)) ([d1b8ae5](https://github.com/KATT/raf-query/commit/d1b8ae560540cea345dad1008f8b4d8a467f48aa))
|
|
8
|
+
* **react:** let beforeLoad return handles in TanStack Start route context ([#74](https://github.com/KATT/raf-query/issues/74)) ([70c2121](https://github.com/KATT/raf-query/commit/70c2121a1926b4045049e6d9bfe56778262be42f))
|
|
9
|
+
|
|
3
10
|
## [0.5.3](https://github.com/KATT/raf-query/compare/0.5.2...0.5.3) (2026-10-14)
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
- compare prefetch, ensure and fetch in the starting queries demo ([#73](https://github.com/KATT/raf-query/issues/73)) ([b26a65e](https://github.com/KATT/raf-query/commit/b26a65e3e003f18308ce456646eba1d3f50c1357))
|
|
6
13
|
|
|
7
14
|
## [0.5.2](https://github.com/KATT/raf-query/compare/0.5.1...0.5.2) (2026-10-14)
|
|
8
15
|
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { QueryClient } from "./client.mjs";
|
|
2
|
-
import { DehydrateOptions, DehydratedState, HydrateOptions } from "@raf-query/core";
|
|
2
|
+
import { DehydrateOptions, DehydratedState, EnsuredQueryHandle, HydrateOptions, QueryHandle } from "@raf-query/core";
|
|
3
3
|
import { AnyRouter } from "@tanstack/react-router";
|
|
4
4
|
//#region src/tanstack-router-shared.d.ts
|
|
5
|
+
declare module "@tanstack/react-router" {
|
|
6
|
+
interface SerializableExtensions {
|
|
7
|
+
/**
|
|
8
|
+
* Handles are `{ key, input, ensured? }`, which the router's serializer
|
|
9
|
+
* sends as is. Its type check can't see that on its own: keys are
|
|
10
|
+
* `ReadonlyArray<unknown>`, and the handle type names its factory.
|
|
11
|
+
* So `beforeLoad` can put handles in route context.
|
|
12
|
+
*/
|
|
13
|
+
rafQueryHandle: EnsuredQueryHandle | QueryHandle;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
5
16
|
export interface RouterIntegrationOptions<TRouter extends AnyRouter> {
|
|
6
17
|
readonly dehydrateOptions?: DehydrateOptions;
|
|
7
18
|
/** Navigate when a `queryFn` throws `redirect()`. Default `true`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raf-query/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "React bindings for raf-query, a render-as-you-fetch query library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"query",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@raf-query/core": "0.5.
|
|
50
|
+
"@raf-query/core": "0.5.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@tanstack/react-router": "^1.170.0",
|