We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28298fd commit d6cacb0Copy full SHA for d6cacb0
packages/runtime-core/src/vnode.ts
@@ -1,5 +1,6 @@
1
import { isArray, isBoolean, ShapeFlags } from '@coderwei-mini-vue3/shared'
2
import { isObject, isString } from '@coderwei-mini-vue3/shared'
3
+import { isSuspense } from './components/suspense'
4
import { isTeleport } from './components/Teleport'
5
export const Fragment = Symbol('Fragment')
6
export const Text = Symbol('Text')
@@ -28,6 +29,8 @@ export function getShapeFlag(type: any) {
28
29
? ShapeFlags.ELEMENT
30
: isTeleport(type)
31
? ShapeFlags.TELEPORT
32
+ : isSuspense(type)
33
+ ? ShapeFlags.SUSPENSE
34
: isObject(type)
35
? ShapeFlags.STATEFUL_COMPONENT
36
: 0
0 commit comments