wip: watcher callback handling inside suspense

This commit is contained in:
Evan You
2019-09-11 10:09:00 -04:00
parent 51914c76e8
commit 356a01780b
6 changed files with 56 additions and 26 deletions

View File

@@ -39,7 +39,11 @@ function injectHook(
warn(
`${apiName} is called when there is no active component instance to be ` +
`associated with. ` +
`Lifecycle injection APIs can only be used during execution of setup().`
`Lifecycle injection APIs can only be used during execution of setup().` +
(__FEATURE_SUSPENSE__
? ` If you are using async setup(), make sure to register lifecycle ` +
`hooks before the first await statement.`
: ``)
)
}
}