()
| 553 | // We only need to balance ctx.scope.on() from setCurrentInstance(ctx), |
| 554 | // then clear global currentInstance for user microtasks. |
| 555 | const cleanup = () => { |
| 556 | if (getCurrentInstance() !== ctx) ctx.scope.off() |
| 557 | unsetCurrentInstance() |
| 558 | if (inSSRSetup) { |
| 559 | setInSSRSetupState(false) |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | if (isPromise(awaitable)) { |
| 564 | awaitable = awaitable.catch(e => { |
no test coverage detected