MCPcopy
hub / github.com/vuejs/core / restore

Function restore

packages/runtime-core/src/apiSetupHelpers.ts:544–549  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Callers 1

withAsyncContextFunction · 0.85

Calls 1

setCurrentInstanceFunction · 0.90

Tested by

no test coverage detected