wrong v-for Map typings? #542
-
when iterating through a map, its typically done like this: <div v-for="[key, value] in map" My attempt of also accessing the index: <div v-for="([key, value], a, b) in map"
but actually |
Beta Was this translation helpful? Give feedback.
Answered by
johnsoncodehk
Oct 1, 2021
Replies: 1 comment
-
This is a bug, please track #544. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
johnsoncodehk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bug, please track #544.
Reference: https://github.com/vuejs/vue-next/blob/ca17162e377e0a0bf3fae9d92d0fdcb32084a9fe/packages/runtime-core/src/helpers/renderList.ts#L77-L80