Skip to content

Commit a6be280

Browse files
committed
chore: only wrap during tests
1 parent 7e8f175 commit a6be280

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,11 @@ export const enum MoveType {
271271
}
272272

273273
export const queuePostRenderEffect = __FEATURE_SUSPENSE__
274-
? (fn: Function | Function[], suspense: SuspenseBoundary | null) =>
275-
queueEffectWithSuspense(fn, suspense)
274+
? __TEST__
275+
? // vitest can't seem to handle eager circular dependency
276+
(fn: Function | Function[], suspense: SuspenseBoundary | null) =>
277+
queueEffectWithSuspense(fn, suspense)
278+
: queueEffectWithSuspense
276279
: queuePostFlushCb
277280

278281
/**

0 commit comments

Comments
 (0)