[Vuejs]-Vue2 – Vue.compile(template): Problem with lifecycle hooks if template string gets updated

0👍

Solved.

The template compiler also needs the "key" property to refer to the correct instance. After modify, all lifecycle hooks work as expected.

Unfortunately, there is no warning like v-for directive use it if the key property was not provided.

Leave a comment