@faasjs/react 6.12.3 → 7.0.0-beta.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/dist/index.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -245,6 +245,8 @@ function useFaas(action, defaultParams, options = {}) {
|
|
|
245
245
|
);
|
|
246
246
|
promiseRef.current = request;
|
|
247
247
|
request.then((r) => {
|
|
248
|
+
setFails(0);
|
|
249
|
+
setError(null);
|
|
248
250
|
options.setData ? options.setData(r.data) : setData(r.data);
|
|
249
251
|
setLoading(false);
|
|
250
252
|
for (const { resolve } of pendingReloadsRef.current.values())
|
package/dist/index.mjs
CHANGED
|
@@ -243,6 +243,8 @@ function useFaas(action, defaultParams, options = {}) {
|
|
|
243
243
|
);
|
|
244
244
|
promiseRef.current = request;
|
|
245
245
|
request.then((r) => {
|
|
246
|
+
setFails(0);
|
|
247
|
+
setError(null);
|
|
246
248
|
options.setData ? options.setData(r.data) : setData(r.data);
|
|
247
249
|
setLoading(false);
|
|
248
250
|
for (const { resolve } of pendingReloadsRef.current.values())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@faasjs/browser": ">=
|
|
33
|
+
"@faasjs/browser": ">=7.0.0-beta.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@faasjs/browser": ">=
|
|
36
|
+
"@faasjs/browser": ">=7.0.0-beta.1",
|
|
37
37
|
"@types/react": "*",
|
|
38
38
|
"react": "*"
|
|
39
39
|
},
|