We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75d6a1c commit 4a5021eCopy full SHA for 4a5021e
packages/runtime-core/src/componentProps.ts
@@ -140,7 +140,7 @@ export function updateProps(
140
} = instance
141
const rawOptions = instance.type.props
142
const rawCurrentProps = toRaw(props)
143
- const { 0: options } = normalizePropsOptions(rawOptions)
+ const [options] = normalizePropsOptions(rawOptions)
144
145
if ((optimized || patchFlag > 0) && !(patchFlag & PatchFlags.FULL_PROPS)) {
146
if (patchFlag & PatchFlags.PROPS) {
@@ -220,7 +220,7 @@ function setFullProps(
220
props: Data,
221
attrs: Data
222
) {
223
- const { 0: options, 1: needCastKeys } = normalizePropsOptions(
+ const [options, needCastKeys] = normalizePropsOptions(
224
instance.type.props
225
)
226
const emits = instance.type.emits
0 commit comments