Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Vue warn: maximum recursive updates exceeded #91

Open
weddingdj opened this issue Sep 30, 2022 · 2 comments
Open

Vue warn: maximum recursive updates exceeded #91

weddingdj opened this issue Sep 30, 2022 · 2 comments

Comments

@weddingdj
Copy link

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
Copy link
Author

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

@grafxflow
Copy link

grafxflow commented Oct 18, 2022

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";

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants