Skip to content

Commit 1c03254

Browse files
committed
release: release v2.0.0-beta.3
1 parent 20e48dd commit 1c03254

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

core/use-condition-watcher.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ export default function useConditionWatcher<Cond extends Record<string, any>, Re
187187
.finally(() => {
188188
isFetching.value = false
189189
finallyEvent.trigger()
190-
// - Start polling with out setting to manual
191-
if (watcherConfig.manual) return
192-
polling()
193190
})
194191
})
195192
}
@@ -205,12 +202,10 @@ export default function useConditionWatcher<Cond extends Record<string, any>, Re
205202
}
206203
}
207204

208-
function polling() {
209-
if (pollingTimer.value) return
210-
205+
// - Start polling with out setting to manual
206+
if (!watcherConfig.manual) {
211207
watchEffect((onCleanup) => {
212208
const pollingInterval = unref(watcherConfig.pollingInterval)
213-
214209
if (pollingInterval) {
215210
pollingTimer.value = (() => {
216211
let timerId = null

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-condition-watcher",
3-
"version": "2.0.0-beta.2",
3+
"version": "2.0.0-beta.3",
44
"description": "Vue composition API for automatic data fetching. With conditions as the core. Easily control and sync to URL query string by conditions",
55
"main": "./core/dist/index.js",
66
"module": "./core/dist/index.esm.js",
@@ -40,7 +40,7 @@
4040
"test:2": "vue-demi-switch 2 vue2 && vitest run",
4141
"test:3": "vue-demi-switch 3 && vitest run",
4242
"test:all": "pnpm format && pnpm build && pnpm test:3 && pnpm test:2 && vue-demi-switch 3",
43-
"prepublishOnly": "pnpm clean && pnpm build",
43+
"prepublishOnly": "pnpm format && pnpm clean && pnpm build",
4444
"publish-beta": "pnpm publish --tag beta"
4545
},
4646
"repository": {
@@ -97,7 +97,7 @@
9797
"typescript": "^4.6.4",
9898
"vite": "^3.0.0",
9999
"vitest": "^0.18.0",
100-
"vue": "^3.2.37",
100+
"vue": "^3.2.45",
101101
"vue-condition-watcher": "workspace:*",
102102
"vue2": "npm:vue@2.6.14"
103103
},

0 commit comments

Comments
 (0)