File tree 2 files changed +6
-4
lines changed
packages/runtime-core/src
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,12 @@ export function updateProps(
153
153
const rawCurrentProps = toRaw ( props )
154
154
const [ options ] = normalizePropsOptions ( instance . type )
155
155
156
- if ( ( optimized || patchFlag > 0 ) && ! ( patchFlag & PatchFlags . FULL_PROPS ) ) {
156
+ if (
157
+ // always force full diff if hmr is enabled
158
+ ! ( __DEV__ && instance . type . __hmrId ) &&
159
+ ( optimized || patchFlag > 0 ) &&
160
+ ! ( patchFlag & PatchFlags . FULL_PROPS )
161
+ ) {
157
162
if ( patchFlag & PatchFlags . PROPS ) {
158
163
// Compiler-generated props & no keys change, just set the updated
159
164
// the props.
Original file line number Diff line number Diff line change @@ -1451,9 +1451,6 @@ function baseCreateRenderer(
1451
1451
nextVNode : VNode ,
1452
1452
optimized : boolean
1453
1453
) => {
1454
- if ( __DEV__ && instance . type . __hmrId ) {
1455
- optimized = false
1456
- }
1457
1454
nextVNode . component = instance
1458
1455
const prevProps = instance . vnode . props
1459
1456
instance . vnode = nextVNode
You can’t perform that action at this time.
0 commit comments