@raf-query/react 0.7.3 → 0.7.5

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 CHANGED
@@ -1,8 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.5](https://github.com/KATT/raf-query/compare/0.7.4...0.7.5) (2026-10-14)
4
+
5
+ * 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))
6
+
7
+ ## [0.7.4](https://github.com/KATT/raf-query/compare/0.7.3...0.7.4) (2026-10-14)
8
+
9
+ - **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))
10
+
3
11
  ## [0.7.3](https://github.com/KATT/raf-query/compare/0.7.2...0.7.3) (2026-10-14)
4
12
 
5
- * typecheck every ts/tsx sample with Twoslash ([#92](https://github.com/KATT/raf-query/issues/92)) ([a658baa](https://github.com/KATT/raf-query/commit/a658baaecf4706e11136e7fc0a322fbce539c583)), references [#90](https://github.com/KATT/raf-query/issues/90)
13
+ - typecheck every ts/tsx sample with Twoslash ([#92](https://github.com/KATT/raf-query/issues/92)) ([a658baa](https://github.com/KATT/raf-query/commit/a658baaecf4706e11136e7fc0a322fbce539c583)), references [#90](https://github.com/KATT/raf-query/issues/90)
6
14
 
7
15
  ## [0.7.2](https://github.com/KATT/raf-query/compare/0.7.1...0.7.2) (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, for global loading
6
- * indicators. It's `0` on the server and while hydrating, so the server's
7
- * HTML and the browser's first render agree:
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();
@@ -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, for global loading
20
- * indicators. It's `0` on the server and while hydrating, so the server's
21
- * HTML and the browser's first render agree:
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",
3
+ "version": "0.7.5",
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.3"
49
+ "@raf-query/core": "0.7.5"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@tanstack/react-router": "^1.170.0",