Can't access component methods when binding :key on a template
Version
3.0.0-rc.10
Reproduction link
https://codesandbox.io/s/happy-fast-vfld6?file=/src/App.vue
Steps to reproduce
Open reproduction link, the code binds :key
on a template using a method:
<template v-for="item in items" :key="itemKey(item)">
{{item.name}}
</template>
What is expected?
Should render items normally without throwing an error
What is actually happening?
An error is thrown:
Uncaught ReferenceError: itemKey is not defined
Disallow key attribute on <template>