@web-ts-toolkit/access-router-react 0.30.0 → 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/README.md +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -48,6 +48,7 @@ function OrganizationList() {
|
|
|
48
48
|
<button disabled={isPending} onClick={() => mutate({ name: 'Northwind Labs' })}>
|
|
49
49
|
Create
|
|
50
50
|
</button>
|
|
51
|
+
|
|
51
52
|
<ul>
|
|
52
53
|
{data.map((org) => (
|
|
53
54
|
<li key={org._id}>{org.name}</li>
|
|
@@ -61,6 +62,7 @@ function OrganizationList() {
|
|
|
61
62
|
## Main Exports
|
|
62
63
|
|
|
63
64
|
- `createModelHooks(...)`
|
|
65
|
+
- hooks returned by the factory: `useRead`, `useList`, `useCreate`, `useUpdate`, `useUpsert`, `useDelete`, `useCount`, `useDistinct`
|
|
64
66
|
- hook option and result types such as `UseReadQueryOptions` and `UseCreateMutateResult`
|
|
65
67
|
|
|
66
68
|
## Documentation
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@web-ts-toolkit/access-router-react",
|
|
3
3
|
"description": "React hooks for @web-ts-toolkit/access-router-client model services",
|
|
4
4
|
"homepage": "https://web-ts-toolkit.pages.dev/docs/packages/access-router-react",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.31.1",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
8
8
|
"hooks",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"node": ">=20"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@web-ts-toolkit/access-router-client": "0.
|
|
29
|
+
"@web-ts-toolkit/access-router-client": "0.31.1",
|
|
30
30
|
"react": "^18.0.0 || ^19.0.0"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|