@spoosh/plugin-refetch 0.1.4 → 0.1.5
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 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,10 +24,10 @@ const client = new Spoosh<ApiSchema, Error>("/api").use([
|
|
|
24
24
|
]);
|
|
25
25
|
|
|
26
26
|
// Uses plugin defaults
|
|
27
|
-
useRead((api) => api.
|
|
27
|
+
useRead((api) => api("posts").GET());
|
|
28
28
|
|
|
29
29
|
// Per-query override
|
|
30
|
-
useRead((api) => api.
|
|
30
|
+
useRead((api) => api("posts").GET(), {
|
|
31
31
|
refetchOnFocus: false, // Disable for this query
|
|
32
32
|
});
|
|
33
33
|
```
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/plugin-refetch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Auto-refetch plugin for Spoosh - refetch on focus and reconnect",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@spoosh/core": ">=0.4.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@spoosh/core": "0.
|
|
40
|
+
"@spoosh/core": "0.6.0",
|
|
41
41
|
"@spoosh/test-utils": "0.1.5"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|