Skip to content

Commit

Permalink
https://github.com/vuejs/core/pull/5781
Browse files Browse the repository at this point in the history
  • Loading branch information
keepliving committed Aug 4, 2022
1 parent bdffc14 commit 8d9285c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/runtime-core/src/componentProps.ts
Expand Up @@ -40,6 +40,7 @@ import { createPropsDefaultThis } from './compat/props'
import { isCompatEnabled, softAssertCompatEnabled } from './compat/compatConfig'
import { DeprecationTypes } from './compat/compatConfig'
import { shouldSkipAttr } from './compat/attrsFallthrough'
import { isHmrUpdating } from './hmr'

export type ComponentPropsOptions<P = Data> =
| ComponentObjectPropsOptions<P>
Expand Down Expand Up @@ -212,9 +213,7 @@ export function updateProps(
// - #1942 if hmr is enabled with sfc component
// - vite#872 non-sfc component used by sfc component
!(
__DEV__ &&
(instance.type.__hmrId ||
(instance.parent && instance.parent.type.__hmrId))
__DEV__ && isHmrUpdating
) &&
(optimized || patchFlag > 0) &&
!(patchFlag & PatchFlags.FULL_PROPS)
Expand Down

0 comments on commit 8d9285c

Please sign in to comment.