@@ -32,10 +32,25 @@ export function setCurrentRenderingInstance(
|
||||
* Set scope id when creating hoisted vnodes.
|
||||
* @private compiler helper
|
||||
*/
|
||||
export function setScopeId(id: string | null) {
|
||||
export function pushScopeId(id: string | null) {
|
||||
currentScopeId = id
|
||||
}
|
||||
|
||||
/**
|
||||
* Technically we no longer need this after 3.0.8 but we need to keep the same
|
||||
* API for backwards compat w/ code generated by compilers.
|
||||
* @private
|
||||
*/
|
||||
export function popScopeId() {
|
||||
currentScopeId = null
|
||||
}
|
||||
|
||||
/**
|
||||
* Only for backwards compat
|
||||
* @private
|
||||
*/
|
||||
export const withScopeId = (_id: string) => withCtx
|
||||
|
||||
/**
|
||||
* Wrap a slot function to memoize current rendering instance
|
||||
* @private compiler helper
|
||||
|
||||
Reference in New Issue
Block a user