()
| 542 | } |
| 543 | |
| 544 | const restore = () => { |
| 545 | setCurrentInstance(ctx) |
| 546 | if (inSSRSetup) { |
| 547 | setInSSRSetupState(true) |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | // Never restore a captured "prev" instance here: in concurrent async setup |
| 552 | // continuations it may belong to a sibling component and cause leaks. |
no test coverage detected