chore: only wrap during tests

This commit is contained in:
Evan You 2023-01-26 20:59:30 +08:00
parent 7e8f175db7
commit a6be280fc3
1 changed files with 5 additions and 2 deletions

View File

@ -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
/**