@tinkered/react 0.21.0 → 0.21.2
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 +4 -0
- package/package.json +3 -3
- package/skills/react/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,8 @@ function App() {
|
|
|
80
80
|
- `useData(cell)` reads a cell and follows its changes.
|
|
81
81
|
A selector reads part of its value.
|
|
82
82
|
- `useData(cell, { writable: true })` returns the value and a setter.
|
|
83
|
+
- `useData(total({ viewer }))` reads a Core `derived`.
|
|
84
|
+
Each reader of the same config gets the same value, so it needs no `useMemo`.
|
|
83
85
|
- `useController` supplies writes without subscribing the component.
|
|
84
86
|
- `useResource` reads a built resource.
|
|
85
87
|
Async builds suspend; failures reach the error boundary.
|
|
@@ -220,6 +222,8 @@ This appendix states each behaviour the seam tests pin, one line per promise, gr
|
|
|
220
222
|
- useData with no provider raises NoProvider.
|
|
221
223
|
- An unchanged object value keeps its identity across a parent re-render.
|
|
222
224
|
- A write after unmount neither updates the removed subtree nor breaks the still-open scope.
|
|
225
|
+
- A component reads a derived, keeps its reference across renders, and follows a write.
|
|
226
|
+
- A new config leaves the old entry.
|
|
223
227
|
|
|
224
228
|
### useResource
|
|
225
229
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkered/react",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
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.21.
|
|
32
|
+
"@tinkered/core": "^0.21.2"
|
|
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.21.
|
|
37
|
+
"@tinkered/core": "^0.21.2",
|
|
38
38
|
"@types/node": "^26.1.1",
|
|
39
39
|
"@types/react": "^19",
|
|
40
40
|
"@types/react-dom": "^19",
|