@faasjs/react 6.12.1 → 6.12.3

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 CHANGED
@@ -277,13 +277,13 @@ function useFaas(action, defaultParams, options = {}) {
277
277
  const timeout = setTimeout(send, options.debounce);
278
278
  return () => {
279
279
  clearTimeout(timeout);
280
- controllerRef.current?.abort("debounce");
280
+ controllerRef.current?.abort();
281
281
  setLoading(false);
282
282
  };
283
283
  }
284
284
  send();
285
285
  return () => {
286
- controllerRef.current?.abort("unmount");
286
+ controllerRef.current?.abort();
287
287
  setLoading(false);
288
288
  };
289
289
  }, [action, options.params || params, reloadTimes, skip]);
package/dist/index.mjs CHANGED
@@ -275,13 +275,13 @@ function useFaas(action, defaultParams, options = {}) {
275
275
  const timeout = setTimeout(send, options.debounce);
276
276
  return () => {
277
277
  clearTimeout(timeout);
278
- controllerRef.current?.abort("debounce");
278
+ controllerRef.current?.abort();
279
279
  setLoading(false);
280
280
  };
281
281
  }
282
282
  send();
283
283
  return () => {
284
- controllerRef.current?.abort("unmount");
284
+ controllerRef.current?.abort();
285
285
  setLoading(false);
286
286
  };
287
287
  }, [action, options.params || params, reloadTimes, skip]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/react",
3
- "version": "6.12.1",
3
+ "version": "6.12.3",
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": ">=6.12.1"
33
+ "@faasjs/browser": ">=6.12.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@faasjs/browser": ">=6.12.1",
36
+ "@faasjs/browser": ">=6.12.3",
37
37
  "@types/react": "*",
38
38
  "react": "*"
39
39
  },