We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e57061 commit fb3c305Copy full SHA for fb3c305
src/core/vdom/patch.ts
@@ -878,8 +878,11 @@ export function createPatchFunction(backend) {
878
const insert = ancestor.data.hook.insert
879
if (insert.merged) {
880
// start at index 1 to avoid re-invoking component mounted hook
881
- for (let i = 1; i < insert.fns.length; i++) {
882
- insert.fns[i]()
+ // clone insert hooks to avoid being mutated during iteration.
+ // e.g. for customed directives under transition group.
883
+ const cloned = insert.fns.slice(1)
884
+ for (let i = 0; i < cloned.length; i++) {
885
+ cloned[i]()
886
}
887
888
} else {
0 commit comments