From 922a491d4b4a4592d535357ad21aa4913661b416 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 6 Nov 2019 16:58:30 +0800 Subject: [PATCH] fix(api): onPush --- src/core/helpers/promise.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/helpers/promise.js b/src/core/helpers/promise.js index b4d947939e..1a427c9c13 100644 --- a/src/core/helpers/promise.js +++ b/src/core/helpers/promise.js @@ -24,7 +24,7 @@ export function isSyncApi (name) { } export function isCallbackApi (name) { - return CALLBACK_API_RE.test(name) + return CALLBACK_API_RE.test(name) && name !== 'onPush' } export function isTaskApi (name) { -- GitLab