mirror of https://github.com/vuejs/core.git
chore: remove deprecated AppConfig.unwrapInjectedRef option
This commit is contained in:
parent
e8bbc946cb
commit
7f00ec2d97
|
@ -110,13 +110,6 @@ export interface AppConfig {
|
|||
* @deprecated use config.compilerOptions.isCustomElement
|
||||
*/
|
||||
isCustomElement?: (tag: string) => boolean
|
||||
|
||||
// TODO remove in 3.4
|
||||
/**
|
||||
* Temporary config for opt-in to unwrap injected refs.
|
||||
* @deprecated this no longer has effect. 3.3 always unwraps injected refs.
|
||||
*/
|
||||
unwrapInjectedRef?: boolean
|
||||
}
|
||||
|
||||
export interface AppContext {
|
||||
|
@ -212,22 +205,6 @@ export function createAppAPI<HostElement>(
|
|||
}
|
||||
|
||||
const context = createAppContext()
|
||||
|
||||
// TODO remove in 3.4
|
||||
if (__DEV__) {
|
||||
Object.defineProperty(context.config, 'unwrapInjectedRef', {
|
||||
get() {
|
||||
return true
|
||||
},
|
||||
set() {
|
||||
warn(
|
||||
`app.config.unwrapInjectedRef has been deprecated. ` +
|
||||
`3.3 now always unwraps injected refs in Options API.`
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const installedPlugins = new WeakSet()
|
||||
|
||||
let isMounted = false
|
||||
|
|
Loading…
Reference in New Issue