@molecule/app-query-solid 1.2.0 → 1.2.1
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 +5 -3
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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-11-
|
|
6
|
+
Generated: 2026-11-15T13:02:04.243Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-query-solid
|
|
@@ -45,7 +45,7 @@ its writes already publish the response and refresh its tracked collections.
|
|
|
45
45
|
```tsx
|
|
46
46
|
import { Match, Show, Switch } from 'solid-js'
|
|
47
47
|
import { getClient, isHttpError } from '@molecule/app-http'
|
|
48
|
-
import {
|
|
48
|
+
import { useTranslation } from '@molecule/app-solid'
|
|
49
49
|
import { intentPrefetchProps, useQuery } from '@molecule/app-query-solid'
|
|
50
50
|
|
|
51
51
|
interface PackageDocument {
|
|
@@ -78,6 +78,7 @@ function PackageLink(props: { name: string }) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
function PackagePage(props: { name: string }) {
|
|
81
|
+
const { t } = useTranslation()
|
|
81
82
|
// The options are an accessor, so a changed name (route param, input) re-keys
|
|
82
83
|
// the observer on the same mounted component, the way React re-renders useQuery.
|
|
83
84
|
const query = useQuery(() => packageQuery(props.name))
|
|
@@ -194,7 +195,7 @@ explicit `fetch()` retries into the mounted page.
|
|
|
194
195
|
|
|
195
196
|
```tsx
|
|
196
197
|
import { getClient } from '@molecule/app-http'
|
|
197
|
-
import {
|
|
198
|
+
import { useTranslation } from '@molecule/app-solid'
|
|
198
199
|
import { getQueryClient } from '@molecule/app-query'
|
|
199
200
|
|
|
200
201
|
// The key names what the document actually depends on — here the signed-in
|
|
@@ -223,6 +224,7 @@ async function setFollowing(principal: string, authorId: string, follow: boolean
|
|
|
223
224
|
}
|
|
224
225
|
|
|
225
226
|
function Retry(props: { principal: string }) {
|
|
227
|
+
const { t } = useTranslation()
|
|
226
228
|
return (
|
|
227
229
|
<button
|
|
228
230
|
onClick={() => {
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* ```tsx
|
|
32
32
|
* import { Match, Show, Switch } from 'solid-js'
|
|
33
33
|
* import { getClient, isHttpError } from '@molecule/app-http'
|
|
34
|
-
* import {
|
|
34
|
+
* import { useTranslation } from '@molecule/app-solid'
|
|
35
35
|
* import { intentPrefetchProps, useQuery } from '@molecule/app-query-solid'
|
|
36
36
|
*
|
|
37
37
|
* interface PackageDocument {
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
* }
|
|
65
65
|
*
|
|
66
66
|
* function PackagePage(props: { name: string }) {
|
|
67
|
+
* const { t } = useTranslation()
|
|
67
68
|
* // The options are an accessor, so a changed name (route param, input) re-keys
|
|
68
69
|
* // the observer on the same mounted component, the way React re-renders useQuery.
|
|
69
70
|
* const query = useQuery(() => packageQuery(props.name))
|
|
@@ -183,7 +184,7 @@
|
|
|
183
184
|
*
|
|
184
185
|
* ```tsx
|
|
185
186
|
* import { getClient } from '@molecule/app-http'
|
|
186
|
-
* import {
|
|
187
|
+
* import { useTranslation } from '@molecule/app-solid'
|
|
187
188
|
* import { getQueryClient } from '@molecule/app-query'
|
|
188
189
|
*
|
|
189
190
|
* // The key names what the document actually depends on — here the signed-in
|
|
@@ -212,6 +213,7 @@
|
|
|
212
213
|
* }
|
|
213
214
|
*
|
|
214
215
|
* function Retry(props: { principal: string }) {
|
|
216
|
+
* const { t } = useTranslation()
|
|
215
217
|
* return (
|
|
216
218
|
* <button
|
|
217
219
|
* onClick={() => {
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2aG;AAEH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* ```tsx
|
|
32
32
|
* import { Match, Show, Switch } from 'solid-js'
|
|
33
33
|
* import { getClient, isHttpError } from '@molecule/app-http'
|
|
34
|
-
* import {
|
|
34
|
+
* import { useTranslation } from '@molecule/app-solid'
|
|
35
35
|
* import { intentPrefetchProps, useQuery } from '@molecule/app-query-solid'
|
|
36
36
|
*
|
|
37
37
|
* interface PackageDocument {
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
* }
|
|
65
65
|
*
|
|
66
66
|
* function PackagePage(props: { name: string }) {
|
|
67
|
+
* const { t } = useTranslation()
|
|
67
68
|
* // The options are an accessor, so a changed name (route param, input) re-keys
|
|
68
69
|
* // the observer on the same mounted component, the way React re-renders useQuery.
|
|
69
70
|
* const query = useQuery(() => packageQuery(props.name))
|
|
@@ -183,7 +184,7 @@
|
|
|
183
184
|
*
|
|
184
185
|
* ```tsx
|
|
185
186
|
* import { getClient } from '@molecule/app-http'
|
|
186
|
-
* import {
|
|
187
|
+
* import { useTranslation } from '@molecule/app-solid'
|
|
187
188
|
* import { getQueryClient } from '@molecule/app-query'
|
|
188
189
|
*
|
|
189
190
|
* // The key names what the document actually depends on — here the signed-in
|
|
@@ -212,6 +213,7 @@
|
|
|
212
213
|
* }
|
|
213
214
|
*
|
|
214
215
|
* function Retry(props: { principal: string }) {
|
|
216
|
+
* const { t } = useTranslation()
|
|
215
217
|
* return (
|
|
216
218
|
* <button
|
|
217
219
|
* onClick={() => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2aG;AAEH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-query-solid",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Solid 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-solid",
|
|
6
6
|
"type": "module",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
53
|
-
"@molecule/app-i18n": "1.2.
|
|
53
|
+
"@molecule/app-i18n": "1.2.2",
|
|
54
54
|
"@molecule/app-icons": "1.0.4",
|
|
55
55
|
"@molecule/app-query": "1.2.0",
|
|
56
56
|
"@molecule/app-query-memory": "1.0.5",
|
|
57
57
|
"@molecule/app-query-tanstack": "1.0.5",
|
|
58
|
-
"@molecule/app-solid": "3.
|
|
59
|
-
"@molecule/app-ui": "1.
|
|
60
|
-
"@molecule/app-ui-solid": "1.1.
|
|
58
|
+
"@molecule/app-solid": "3.7.1",
|
|
59
|
+
"@molecule/app-ui": "1.4.0",
|
|
60
|
+
"@molecule/app-ui-solid": "1.1.4",
|
|
61
61
|
"@types/node": "26.6.5",
|
|
62
62
|
"jsdom": "30.1.3",
|
|
63
63
|
"solid-js": "1.9.17",
|