fix(inject): should auto unwrap injected refs

fix #4196
This commit is contained in:
Evan You
2021-07-27 17:52:31 -04:00
parent 8681c12c0c
commit 561e210157
4 changed files with 119 additions and 15 deletions

View File

@@ -81,16 +81,22 @@ export interface AppConfig {
trace: string
) => void
/**
* Options to pass to @vue/compiler-dom.
* Only supported in runtime compiler build.
*/
compilerOptions: RuntimeCompilerOptions
/**
* @deprecated use config.compilerOptions.isCustomElement
*/
isCustomElement?: (tag: string) => boolean
/**
* Options to pass to @vue/compiler-dom.
* Only supported in runtime compiler build.
* Temporary config for opt-in to unwrap injected refs.
* TODO deprecate in 3.3
*/
compilerOptions: RuntimeCompilerOptions
unwrapInjectedRef?: boolean
}
export interface AppContext {