mirror of https://github.com/vuejs/core.git
fix(hmr): invalidate cached props/emits options on hmr
This commit is contained in:
parent
4e028b9669
commit
4b5b384485
|
@ -123,6 +123,8 @@ function reload(id: string, newComp: HMRComponent) {
|
|||
}
|
||||
|
||||
// 3. invalidate options resolution cache
|
||||
instance.appContext.propsCache.delete(instance.type as any)
|
||||
instance.appContext.emitsCache.delete(instance.type as any)
|
||||
instance.appContext.optionsCache.delete(instance.type as any)
|
||||
|
||||
// 4. actually update
|
||||
|
|
Loading…
Reference in New Issue