@varlet/axle 0.13.1 → 0.13.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/lib/use.cjs CHANGED
@@ -168,7 +168,7 @@ function createUseAxle(options) {
168
168
  let unmounted = false;
169
169
  const run = Object.assign(async (options3 = {}) => {
170
170
  var _a, _b, _c, _d, _e;
171
- if (!runnable() || unmounted) {
171
+ if (!runnable() || abortOnUnmount && unmounted) {
172
172
  return;
173
173
  }
174
174
  pollingCanceled.value = false;
package/lib/use.js CHANGED
@@ -129,7 +129,7 @@ function createUseAxle(options) {
129
129
  let unmounted = false;
130
130
  const run = Object.assign(async (options3 = {}) => {
131
131
  var _a, _b, _c, _d, _e;
132
- if (!runnable() || unmounted) {
132
+ if (!runnable() || abortOnUnmount && unmounted) {
133
133
  return;
134
134
  }
135
135
  pollingCanceled.value = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/axle",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Progressive request tool based on axios",
5
5
  "keywords": [
6
6
  "axle",