inertiajs-tables-laravel-query-builder icon indicating copy to clipboard operation
inertiajs-tables-laravel-query-builder copied to clipboard

Vue warn: maximum recursive updates exceeded

Open weddingdj opened this issue 3 years ago • 2 comments

I am using version 2.0.0 and I get this warning which crashes the browser in a production build:

[Vue warn]: Maximum recursive updates exceeded in component <PerPageSelector>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.

If I use the template slot to force to not render the pagination part of the table, I don't get the warning.

Any help would be appreciated

weddingdj avatar Sep 30 '22 15:09 weddingdj

Interestingly, if I import all vue files from the package myself, not compiled, the error does not appear.

weddingdj avatar Oct 02 '22 14:10 weddingdj

I can confirm the same that the below (based with my directory) solves the warning appearing.

webpack.mix.js

.alias({
   '@vendor': 'vendor',
})
import Table from "@vendor/protonemedia/inertiajs-tables-laravel-query-builder/js/Components/Table.vue";

grafxflow avatar Oct 18 '22 17:10 grafxflow