0👍
✅
You’re missing something, you need to use the spread syntax with mapGetters.
<script>
import { mapGetters } from 'vuex'
export default {
name: 'Todo',
computed: {
...mapGetters(['allTodos'])
}
}
</script>
Source:stackexchange.com