From: Evan You Date: Thu, 26 Jan 2023 12:59:30 +0000 (+0800) Subject: chore: only wrap during tests X-Git-Tag: v3.2.46~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6be280fc3cf034da7103c2c9878d9767c7702c1;p=thirdparty%2Fvuejs%2Fcore.git chore: only wrap during tests --- diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 3a4608681f..b1e048e588 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -271,8 +271,11 @@ export const enum MoveType { } export const queuePostRenderEffect = __FEATURE_SUSPENSE__ - ? (fn: Function | Function[], suspense: SuspenseBoundary | null) => - queueEffectWithSuspense(fn, suspense) + ? __TEST__ + ? // vitest can't seem to handle eager circular dependency + (fn: Function | Function[], suspense: SuspenseBoundary | null) => + queueEffectWithSuspense(fn, suspense) + : queueEffectWithSuspense : queuePostFlushCb /**