feat: update Suspense usage (#2099)
See https://github.com/vuejs/vue-next/pull/2099 for details.
This commit is contained in:
@@ -317,6 +317,11 @@ export interface ComponentInternalInstance {
|
||||
* @internal
|
||||
*/
|
||||
suspense: SuspenseBoundary | null
|
||||
/**
|
||||
* suspense pending batch id
|
||||
* @internal
|
||||
*/
|
||||
suspenseId: number
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
@@ -440,6 +445,7 @@ export function createComponentInstance(
|
||||
|
||||
// suspense related
|
||||
suspense,
|
||||
suspenseId: suspense ? suspense.pendingId : 0,
|
||||
asyncDep: null,
|
||||
asyncResolved: false,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user