@raf-query/react 0.7.4 → 0.7.6
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 +9 -1
- package/dist/use-is-fetching.d.mts +8 -3
- package/dist/use-is-fetching.mjs +8 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.6](https://github.com/KATT/raf-query/compare/0.7.5...0.7.6) (2026-10-14)
|
|
4
|
+
|
|
5
|
+
* **agents:** open PRs ready for review unless experimental ([#99](https://github.com/KATT/raf-query/issues/99)) ([e141269](https://github.com/KATT/raf-query/commit/e141269cf290b56dcb452bb0aa63a3b490657142))
|
|
6
|
+
|
|
7
|
+
## [0.7.5](https://github.com/KATT/raf-query/compare/0.7.4...0.7.5) (2026-10-14)
|
|
8
|
+
|
|
9
|
+
- steer useIsFetching toward router pending and per-query isFetching ([#80](https://github.com/KATT/raf-query/issues/80)) ([c848b16](https://github.com/KATT/raf-query/commit/c848b162d31b1b16c8231d6f19be2420c12f5801))
|
|
10
|
+
|
|
3
11
|
## [0.7.4](https://github.com/KATT/raf-query/compare/0.7.3...0.7.4) (2026-10-14)
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
- **agents:** verify with tests and preview links, and stack PRs for big work ([#93](https://github.com/KATT/raf-query/issues/93)) ([fbe282c](https://github.com/KATT/raf-query/commit/fbe282cc046abfa493afbfd147614dbeba878508))
|
|
6
14
|
|
|
7
15
|
## [0.7.3](https://github.com/KATT/raf-query/compare/0.7.2...0.7.3) (2026-10-14)
|
|
8
16
|
|
|
@@ -2,9 +2,14 @@ import { QueryCache } from "@raf-query/core";
|
|
|
2
2
|
//#region src/use-is-fetching.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* How many queries have a request in flight: all of them, or those matching
|
|
5
|
-
* `filter`. Re-renders when the count changes
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* `filter`. Re-renders when the count changes. It's `0` on the server and
|
|
6
|
+
* while hydrating, so the server's HTML and the browser's first render agree.
|
|
7
|
+
*
|
|
8
|
+
* You probably don't need this. Prefer the router's pending UI for
|
|
9
|
+
* navigations (`useRouterState` / `pendingComponent` in TanStack Router,
|
|
10
|
+
* `useLinkStatus` in Next.js) and per-query `controls.isFetching` for
|
|
11
|
+
* background refetches. Kept for TanStack Query compatibility when you want
|
|
12
|
+
* one global count of every in-flight request:
|
|
8
13
|
*
|
|
9
14
|
* ```tsx
|
|
10
15
|
* const fetching = useIsFetching();
|
package/dist/use-is-fetching.mjs
CHANGED
|
@@ -16,9 +16,14 @@ function subscribeDeferred(client, onStoreChange) {
|
|
|
16
16
|
const none = () => 0;
|
|
17
17
|
/**
|
|
18
18
|
* How many queries have a request in flight: all of them, or those matching
|
|
19
|
-
* `filter`. Re-renders when the count changes
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* `filter`. Re-renders when the count changes. It's `0` on the server and
|
|
20
|
+
* while hydrating, so the server's HTML and the browser's first render agree.
|
|
21
|
+
*
|
|
22
|
+
* You probably don't need this. Prefer the router's pending UI for
|
|
23
|
+
* navigations (`useRouterState` / `pendingComponent` in TanStack Router,
|
|
24
|
+
* `useLinkStatus` in Next.js) and per-query `controls.isFetching` for
|
|
25
|
+
* background refetches. Kept for TanStack Query compatibility when you want
|
|
26
|
+
* one global count of every in-flight request:
|
|
22
27
|
*
|
|
23
28
|
* ```tsx
|
|
24
29
|
* const fetching = useIsFetching();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raf-query/react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "React bindings for raf-query, a render-as-you-fetch query library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"query",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@raf-query/core": "0.7.
|
|
49
|
+
"@raf-query/core": "0.7.6"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@tanstack/react-router": "^1.170.0",
|