const rawCurrentProps = toRaw(props)
const [options] = normalizePropsOptions(instance.type)
- if ((optimized || patchFlag > 0) && !(patchFlag & PatchFlags.FULL_PROPS)) {
+ if (
+ // always force full diff if hmr is enabled
+ !(__DEV__ && instance.type.__hmrId) &&
+ (optimized || patchFlag > 0) &&
+ !(patchFlag & PatchFlags.FULL_PROPS)
+ ) {
if (patchFlag & PatchFlags.PROPS) {
// Compiler-generated props & no keys change, just set the updated
// the props.
nextVNode: VNode,
optimized: boolean
) => {
- if (__DEV__ && instance.type.__hmrId) {
- optimized = false
- }
nextVNode.component = instance
const prevProps = instance.vnode.props
instance.vnode = nextVNode