@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 +1 -1
- package/lib/use.js +1 -1
- package/package.json +1 -1
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;
|