Is anonymous function in Vue Template a performance killer?
问题 I have following setup: In Child component: <template> <div @click="clickHandler"> </div> </template> <script> ... clickHandler() { this.$emit('emittedFunction', someInfo, otherInfo) } </script> In Parent component: <template> <child-component v-for="index in 10" @emittedFunction="(someInfo, otherInfo) => someFunction(index, someInfo, otherInfo)"/> </template> <script> ... someFunction(index, someInfo, otherInfo) { do stuff } </script> This code works perfectly fine. To my question though: A