feat(hmr): reload and force slot update on re-render

This commit is contained in:
Evan You
2019-12-12 18:13:59 -05:00
parent ef50c333ce
commit f77ae132e5
7 changed files with 73 additions and 16 deletions

View File

@@ -69,6 +69,7 @@ export interface ComponentOptionsBase<
// SFC & dev only
__scopeId?: string
__hmrId?: string
__hmrUpdated?: boolean
// type-only differentiator to separate OptionWithoutProps from a constructor
// type returned by createComponent() or FunctionalComponent
@@ -150,7 +151,6 @@ type ComponentInjectOptions =
string | symbol | { from: string | symbol; default?: unknown }
>
// TODO type inference for these options
export interface LegacyOptions<
Props,
RawBindings,