@spoosh/react 0.7.1 → 0.7.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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
React hooks for Spoosh - `useRead`, `useWrite`, and `useInfiniteRead`.
|
|
4
4
|
|
|
5
|
-
**[Documentation](https://spoosh.dev/docs/
|
|
5
|
+
**[Documentation](https://spoosh.dev/docs/react)** · **Requirements:** TypeScript >= 5.0, React >= 18.0
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
package/dist/index.js
CHANGED
|
@@ -185,7 +185,7 @@ function createUseRead(options) {
|
|
|
185
185
|
}, []);
|
|
186
186
|
const trigger = (0, import_react.useCallback)(
|
|
187
187
|
async (triggerOptions) => {
|
|
188
|
-
const { force =
|
|
188
|
+
const { force = true, ...overrideOptions } = triggerOptions ?? {};
|
|
189
189
|
const hasOverrides = Object.keys(overrideOptions).length > 0;
|
|
190
190
|
if (!hasOverrides) {
|
|
191
191
|
return executeWithTracking(force, void 0);
|
package/dist/index.mjs
CHANGED
|
@@ -169,7 +169,7 @@ function createUseRead(options) {
|
|
|
169
169
|
}, []);
|
|
170
170
|
const trigger = useCallback(
|
|
171
171
|
async (triggerOptions) => {
|
|
172
|
-
const { force =
|
|
172
|
+
const { force = true, ...overrideOptions } = triggerOptions ?? {};
|
|
173
173
|
const hasOverrides = Object.keys(overrideOptions).length > 0;
|
|
174
174
|
if (!hasOverrides) {
|
|
175
175
|
return executeWithTracking(force, void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React hooks for Spoosh API client",
|
|
6
6
|
"keywords": [
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
16
|
+
"url": "git+https://github.com/spooshdev/spoosh.git",
|
|
17
17
|
"directory": "packages/react"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/
|
|
20
|
+
"url": "https://github.com/spooshdev/spoosh/issues"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://spoosh.dev/react
|
|
22
|
+
"homepage": "https://spoosh.dev/docs/react",
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@testing-library/react": "^16.0.0",
|
|
42
42
|
"jsdom": "^26.0.0",
|
|
43
|
-
"@spoosh/core": "0.
|
|
43
|
+
"@spoosh/core": "0.10.0",
|
|
44
44
|
"@spoosh/test-utils": "0.1.5"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|