-import { VNode, normalizeVNode, VNodeChild, VNodeTypes } from './vnode'
+import { VNode, normalizeVNode, VNodeChild } from './vnode'
import { ShapeFlags } from './shapeFlags'
import { isFunction, isArray } from '@vue/shared'
import { ComponentInternalInstance, handleSetupResult } from './component'
import { handleError, ErrorCodes } from './errorHandling'
import { pushWarningContext, popWarningContext } from './warning'
-export function isSuspenseType(type: VNodeTypes): type is typeof SuspenseImpl {
- return (type as any).__isSuspense === true
-}
-
export const SuspenseImpl = {
__isSuspense: true,
process(
import { ShapeFlags } from './shapeFlags'
import { isReactive, Ref } from '@vue/reactivity'
import { AppContext } from './apiApp'
-import { SuspenseBoundary, isSuspenseType } from './suspense'
+import { SuspenseBoundary } from './suspense'
import { DirectiveBinding } from './directives'
import { SuspenseImpl } from './suspense'
// encode the vnode type information into a bitmap
const shapeFlag = isString(type)
? ShapeFlags.ELEMENT
- : __FEATURE_SUSPENSE__ && isSuspenseType(type)
+ : __FEATURE_SUSPENSE__ && (type as any).__isSuspense === true
? ShapeFlags.SUSPENSE
: isObject(type)
? ShapeFlags.STATEFUL_COMPONENT