refactor(hmr): simplify hmr force update check

This commit is contained in:
Evan You
2020-06-12 14:53:48 -04:00
parent 8f2a7489b7
commit e76ed4c269
6 changed files with 24 additions and 43 deletions

View File

@@ -71,10 +71,6 @@ export interface ComponentInternalOptions {
* @internal
*/
__hmrId?: string
/**
* @internal
*/
__hmrUpdated?: boolean
/**
* This one should be exposed so that devtools can make use of it
*/
@@ -325,12 +321,6 @@ export interface ComponentInternalInstance {
* @internal
*/
[LifecycleHooks.ERROR_CAPTURED]: LifecycleHook
/**
* hmr marker (dev only)
* @internal
*/
hmrUpdated?: boolean
}
const emptyAppContext = createAppContext()