@tinkered/react 0.30.1 → 0.31.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/package.json +3 -3
- package/skills/react/SKILL.md +24 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkered/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"description": "Tinkered React: a thin React adapter over @tinkered/core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tanstack-intent"
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tinkered/core": "^0.
|
|
32
|
+
"@tinkered/core": "^0.31.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@stryker-mutator/core": "^10.0.0",
|
|
36
36
|
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
37
|
-
"@tinkered/core": "^0.
|
|
37
|
+
"@tinkered/core": "^0.31.1",
|
|
38
38
|
"@types/node": "^26.1.1",
|
|
39
39
|
"@types/react": "^19",
|
|
40
40
|
"@types/react-dom": "^19",
|
package/skills/react/SKILL.md
CHANGED
|
@@ -5,8 +5,8 @@ description: >
|
|
|
5
5
|
component in a Tinker app: read a cell, run
|
|
6
6
|
an operation from a button, show a pending or
|
|
7
7
|
failed call, or mount the app. Also when a
|
|
8
|
-
check prints tinker/kind, tinker/react-state
|
|
9
|
-
|
|
8
|
+
check prints tinker/kind, tinker/react-state,
|
|
9
|
+
tinker/one-wire or tinker/link.
|
|
10
10
|
metadata:
|
|
11
11
|
purpose: >
|
|
12
12
|
How React reads cells and runs operations
|
|
@@ -15,7 +15,7 @@ metadata:
|
|
|
15
15
|
type: framework
|
|
16
16
|
framework: react
|
|
17
17
|
library: '@tinkered/react'
|
|
18
|
-
library_version: '0.
|
|
18
|
+
library_version: '0.31.1'
|
|
19
19
|
requires:
|
|
20
20
|
- '@tinkered/core#core'
|
|
21
21
|
sources:
|
|
@@ -246,6 +246,27 @@ The page talks to the server by rpc and remote
|
|
|
246
246
|
data only. Read the `@tinkered/core` skill
|
|
247
247
|
`core/rpc`.
|
|
248
248
|
|
|
249
|
+
### HIGH: a plain `<a href>` to a page of the app [tinker/link]
|
|
250
|
+
|
|
251
|
+
Wrong:
|
|
252
|
+
|
|
253
|
+
```tsx no-check
|
|
254
|
+
<a href={`/issues/${team}/${id}`}>{title}</a>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
A click loads the whole page again. The scope
|
|
258
|
+
and every cell start over.
|
|
259
|
+
|
|
260
|
+
Right: a page link is the router's `Link`.
|
|
261
|
+
A server path, such as `/auth/login`: add `rel="external"`.
|
|
262
|
+
The `Link` takes the route's path and params:
|
|
263
|
+
|
|
264
|
+
```tsx no-check
|
|
265
|
+
<Link to="/issues/$team/$id" params={{ team, id }}>
|
|
266
|
+
{title}
|
|
267
|
+
</Link>
|
|
268
|
+
```
|
|
269
|
+
|
|
249
270
|
### MEDIUM: a new object as the selected value
|
|
250
271
|
|
|
251
272
|
```tsx no-check
|