|
@@ -227,6 +227,8 @@ export interface SuspenseBoundary {
|
|
|
unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void
|
|
unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+let hasWarned = false
|
|
|
|
|
+
|
|
|
function createSuspenseBoundary(
|
|
function createSuspenseBoundary(
|
|
|
vnode: VNode,
|
|
vnode: VNode,
|
|
|
parent: SuspenseBoundary | null,
|
|
parent: SuspenseBoundary | null,
|
|
@@ -239,6 +241,14 @@ function createSuspenseBoundary(
|
|
|
rendererInternals: RendererInternals,
|
|
rendererInternals: RendererInternals,
|
|
|
isHydrating = false
|
|
isHydrating = false
|
|
|
): SuspenseBoundary {
|
|
): SuspenseBoundary {
|
|
|
|
|
+ /* istanbul ignore if */
|
|
|
|
|
+ if (__DEV__ && !__TEST__ && !hasWarned) {
|
|
|
|
|
+ hasWarned = true
|
|
|
|
|
+ console[console.info ? 'info' : 'log'](
|
|
|
|
|
+ `<Suspense> is an experimental feature and its API will likely change.`
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const {
|
|
const {
|
|
|
p: patch,
|
|
p: patch,
|
|
|
m: move,
|
|
m: move,
|