perf(core): replace Array.forEach loops

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 66d7198a2f
commit c4b4a04aa0
9 changed files with 57 additions and 42 deletions
@@ -285,7 +285,7 @@ export function useWatchProps(
'autoConnect',
]
Object.keys(props).forEach((key) => {
for (const key of Object.keys(props)) {
const propKey = key as keyof typeof props
if (!skip.includes(propKey)) {
const propValue = toRef(() => props[propKey])
@@ -306,7 +306,7 @@ export function useWatchProps(
})
}
}
})
}
}
const runAll = () => {