mirror of https://github.com/vuejs/core.git
chore: only wrap during tests
This commit is contained in:
parent
7e8f175db7
commit
a6be280fc3
|
@ -271,8 +271,11 @@ export const enum MoveType {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const queuePostRenderEffect = __FEATURE_SUSPENSE__
|
export const queuePostRenderEffect = __FEATURE_SUSPENSE__
|
||||||
? (fn: Function | Function[], suspense: SuspenseBoundary | null) =>
|
? __TEST__
|
||||||
queueEffectWithSuspense(fn, suspense)
|
? // vitest can't seem to handle eager circular dependency
|
||||||
|
(fn: Function | Function[], suspense: SuspenseBoundary | null) =>
|
||||||
|
queueEffectWithSuspense(fn, suspense)
|
||||||
|
: queueEffectWithSuspense
|
||||||
: queuePostFlushCb
|
: queuePostFlushCb
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue