Never put in the vue v-if
and v-for
used simultaneously in the same element.
The v-if we can put in the container element
For example ol ul go
li inside with v-for the following:
<ul v-if="shouldShowUsers"> <li v-for="user in users" :key="user.id" > {{ user.name }} </li> </ul>