0
votes

I am getting Vue warning as

infinite update loop in component render function

. I am writing a unit test and getting this warning. I am using Vuetify's data table for displaying data. My code is as follows:

<template>
  <v-data-table
    id="permission-table"
    v-model="selected"
    :headers="headers"
    :items="users"
    :items-per-page="10"
    class="elevation-1"
  >
    <template v-slot:header.admin="{ header }">
      <roles-tool-tip
        :description="header.description"
      />
      <span> {{header.text}}</span>
    </template>
<template v-slot:item.admin="{ item }">
      <v-checkbox class="cb-center cb-admin" v-model="item.admin" @change="updateUserPermission(item)"></v-checkbox>
    </template>
</v-data-table>
</template>
1
Hard to guess exactly what might be going on without seeing your script section.featlorin

1 Answers

0
votes

If you're using a Version of Vue Test Utils >v1.0.0-beta29 you probably ran into this problem: https://github.com/vuejs/vue-test-utils/issues/1407