File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/runtime-core/src/components Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,8 @@ export interface SuspenseBoundary {
227
227
unmount ( parentSuspense : SuspenseBoundary | null , doRemove ?: boolean ) : void
228
228
}
229
229
230
+ let hasWarned = false
231
+
230
232
function createSuspenseBoundary (
231
233
vnode : VNode ,
232
234
parent : SuspenseBoundary | null ,
@@ -239,6 +241,14 @@ function createSuspenseBoundary(
239
241
rendererInternals : RendererInternals ,
240
242
isHydrating = false
241
243
) : SuspenseBoundary {
244
+ /* istanbul ignore if */
245
+ if ( __DEV__ && ! __TEST__ && ! hasWarned ) {
246
+ hasWarned = true
247
+ console [ console . info ? 'info' : 'log' ] (
248
+ `<Suspense> is an experimental feature and its API will likely change.`
249
+ )
250
+ }
251
+
242
252
const {
243
253
p : patch ,
244
254
m : move ,
You can’t perform that action at this time.
0 commit comments