fix: add display name for suspense component (#3312)

This commit is contained in:
Cédric Exbrayat 2021-03-23 10:17:15 +01:00 committed by GitHub
parent 0600eb4ede
commit 3b3a9a1f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,7 @@ export const isSuspense = (type: any): boolean => type.__isSuspense
// in the compiler, but internally it's a special built-in type that hooks
// directly into the renderer.
export const SuspenseImpl = {
name: 'Suspense',
// In order to make Suspense tree-shakable, we need to avoid importing it
// directly in the renderer. The renderer checks for the __isSuspense flag
// on a vnode's type and calls the `process` method, passing in renderer