shouldUpdateFunctionalComponent
} from './componentUtils'
import { KeepAliveSymbol } from './optional/keepAlive'
-import { pushContext, popContext } from './warning'
+import { pushWarningContext, popWarningContext } from './warning'
interface NodeOps {
createElement: (tag: string, isSVG?: boolean) => any
) {
vnode.contextVNode = contextVNode
if (__DEV__) {
- pushContext(vnode)
+ pushWarningContext(vnode)
}
const { flags } = vnode
if (flags & VNodeFlags.COMPONENT_STATEFUL) {
mountFunctionalComponent(vnode, container, isSVG, endNode)
}
if (__DEV__) {
- popContext()
+ popWarningContext()
}
}
isSVG: boolean
) {
if (__DEV__) {
- pushContext(nextVNode)
+ pushWarningContext(nextVNode)
}
nextVNode.contextVNode = contextVNode
const { tag, flags } = nextVNode
)
}
if (__DEV__) {
- popContext()
+ popWarningContext()
}
}
isSVG: boolean
) {
if (__DEV__ && instance.$parentVNode) {
- pushContext(instance.$parentVNode as VNode)
+ pushWarningContext(instance.$parentVNode as VNode)
}
const prevVNode = instance.$vnode
}
if (__DEV__ && instance.$parentVNode) {
- popContext()
+ popWarningContext()
}
}
let stack: VNode[] = []
-export function pushContext(vnode: VNode) {
+export function pushWarningContext(vnode: VNode) {
stack.push(vnode)
}
-export function popContext() {
+export function popWarningContext() {
stack.pop()
}