From 1c032548e306b77c7a15e51c4c5491e1f174e66a Mon Sep 17 00:00:00 2001 From: Willy Hung Date: Fri, 6 Jan 2023 14:24:51 +0800 Subject: [PATCH] release: release v2.0.0-beta.3 --- core/use-condition-watcher.ts | 9 ++------- package.json | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/core/use-condition-watcher.ts b/core/use-condition-watcher.ts index d04b13c..63d4a97 100644 --- a/core/use-condition-watcher.ts +++ b/core/use-condition-watcher.ts @@ -187,9 +187,6 @@ export default function useConditionWatcher, Re .finally(() => { isFetching.value = false finallyEvent.trigger() - // - Start polling with out setting to manual - if (watcherConfig.manual) return - polling() }) }) } @@ -205,12 +202,10 @@ export default function useConditionWatcher, Re } } - function polling() { - if (pollingTimer.value) return - + // - Start polling with out setting to manual + if (!watcherConfig.manual) { watchEffect((onCleanup) => { const pollingInterval = unref(watcherConfig.pollingInterval) - if (pollingInterval) { pollingTimer.value = (() => { let timerId = null diff --git a/package.json b/package.json index de8942e..60444b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-condition-watcher", - "version": "2.0.0-beta.2", + "version": "2.0.0-beta.3", "description": "Vue composition API for automatic data fetching. With conditions as the core. Easily control and sync to URL query string by conditions", "main": "./core/dist/index.js", "module": "./core/dist/index.esm.js", @@ -40,7 +40,7 @@ "test:2": "vue-demi-switch 2 vue2 && vitest run", "test:3": "vue-demi-switch 3 && vitest run", "test:all": "pnpm format && pnpm build && pnpm test:3 && pnpm test:2 && vue-demi-switch 3", - "prepublishOnly": "pnpm clean && pnpm build", + "prepublishOnly": "pnpm format && pnpm clean && pnpm build", "publish-beta": "pnpm publish --tag beta" }, "repository": { @@ -97,7 +97,7 @@ "typescript": "^4.6.4", "vite": "^3.0.0", "vitest": "^0.18.0", - "vue": "^3.2.37", + "vue": "^3.2.45", "vue-condition-watcher": "workspace:*", "vue2": "npm:vue@2.6.14" },