We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6443a4 commit e78915aCopy full SHA for e78915a
packages/runtime-core/src/componentProps.ts
@@ -156,8 +156,14 @@ export function updateProps(
156
const [options] = instance.propsOptions
157
158
if (
159
- // always force full diff if hmr is enabled
160
- !(__DEV__ && instance.type.__hmrId) &&
+ // always force full diff in dev
+ // - #1942 if hmr is enabled with sfc component
161
+ // - vite#872 non-sfc component used by sfc component
162
+ !(
163
+ __DEV__ &&
164
+ (instance.type.__hmrId ||
165
+ (instance.parent && instance.parent.type.__hmrId))
166
+ ) &&
167
(optimized || patchFlag > 0) &&
168
!(patchFlag & PatchFlags.FULL_PROPS)
169
) {
0 commit comments