@molecule/app-query-react 1.1.3 → 1.1.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/README.md +7 -4
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-11-03T05:29:04.362Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-query-react
|
|
@@ -384,6 +384,9 @@ Peer dependencies:
|
|
|
384
384
|
until the app retries with `client.fetch(options)` or the page subscribes
|
|
385
385
|
again (a key change or a re-mount).
|
|
386
386
|
- After a mutation, `client.set(key, response)` paints the server's own
|
|
387
|
-
answer at once
|
|
388
|
-
|
|
389
|
-
|
|
387
|
+
answer at once and supersedes an older fetch already in flight for that
|
|
388
|
+
key, so its response cannot undo the mutation. An existing `fetch()` caller
|
|
389
|
+
still settles with its older response or a bond-specific cancellation.
|
|
390
|
+
`client.invalidate(prefix)` marks the affected reads stale for their next
|
|
391
|
+
mount. Which key and which scope is the app's decision: the cache does not
|
|
392
|
+
infer it from auth or form state.
|
package/dist/index.d.ts
CHANGED
|
@@ -245,9 +245,12 @@
|
|
|
245
245
|
* until the app retries with `client.fetch(options)` or the page subscribes
|
|
246
246
|
* again (a key change or a re-mount).
|
|
247
247
|
* - After a mutation, `client.set(key, response)` paints the server's own
|
|
248
|
-
* answer at once
|
|
249
|
-
*
|
|
250
|
-
*
|
|
248
|
+
* answer at once and supersedes an older fetch already in flight for that
|
|
249
|
+
* key, so its response cannot undo the mutation. An existing `fetch()` caller
|
|
250
|
+
* still settles with its older response or a bond-specific cancellation.
|
|
251
|
+
* `client.invalidate(prefix)` marks the affected reads stale for their next
|
|
252
|
+
* mount. Which key and which scope is the app's decision: the cache does not
|
|
253
|
+
* infer it from auth or form state.
|
|
251
254
|
*
|
|
252
255
|
* @module
|
|
253
256
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+PG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -245,9 +245,12 @@
|
|
|
245
245
|
* until the app retries with `client.fetch(options)` or the page subscribes
|
|
246
246
|
* again (a key change or a re-mount).
|
|
247
247
|
* - After a mutation, `client.set(key, response)` paints the server's own
|
|
248
|
-
* answer at once
|
|
249
|
-
*
|
|
250
|
-
*
|
|
248
|
+
* answer at once and supersedes an older fetch already in flight for that
|
|
249
|
+
* key, so its response cannot undo the mutation. An existing `fetch()` caller
|
|
250
|
+
* still settles with its older response or a bond-specific cancellation.
|
|
251
|
+
* `client.invalidate(prefix)` marks the affected reads stale for their next
|
|
252
|
+
* mount. Which key and which scope is the app's decision: the cache does not
|
|
253
|
+
* infer it from auth or form state.
|
|
251
254
|
*
|
|
252
255
|
* @module
|
|
253
256
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-query-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "React hooks for @molecule/app-query — read a cached document synchronously, observe it, and prefetch on intent",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-query-react",
|
|
6
6
|
"type": "module",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"react": "^18.0.0 || ^19.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@molecule/app-query": "1.1.
|
|
44
|
-
"@molecule/app-query-memory": "1.0.
|
|
45
|
-
"@molecule/app-query-tanstack": "1.0.
|
|
43
|
+
"@molecule/app-query": "1.1.2",
|
|
44
|
+
"@molecule/app-query-memory": "1.0.4",
|
|
45
|
+
"@molecule/app-query-tanstack": "1.0.3",
|
|
46
46
|
"@types/node": "26.6.5",
|
|
47
47
|
"@types/react": "19.3.0",
|
|
48
48
|
"@types/react-dom": "19.3.0",
|