wip: watcher callback handling inside suspense
This commit is contained in:
@@ -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.`
|
||||
: ``)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user