-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable: Maximum recursive updates exceeded in component <DataTable> #5261
Comments
Any update on this one? It is a fairly significant issue for us. Thanks. |
@caputech I was having this same issue, and after double-checking I had realized I had accidentally messed up the "filters" variable in my script;
When I fixed the filters variable this error went away;
Maybe this helps you too |
Thanks, but no, I have them set correctly. It seems to be a result of using the filtering and grouping together. Only appeared in recent VUE updates as they are enforcing conventions. |
I have the same error from Vue version >= 3.4.15 const filters: Ref<DataTableFilterMeta> = ref({
global: {value: null, matchMode: FilterMatchMode.CONTAINS}
}); <DataTable
:value="productsMock"
v-model:filters="filters"
row-hover
striped-rows
size="small"
rowGroupMode="subheader"
group-rows-by="category"
sort-field="category"
data-key="id"
:sort-order="1"
:global-filter-fields="['title', 'tags']"
> <!-- ... --> </DataTable>
|
I run into this error constantly, really annoying. Datatables seems to have a nag for mutating its props for no apparent reason |
I was having the same issue, and comparing exampIe and my code I had realized I had non existing field in my filters Before: After: |
I've been trying every which way to get aware from this without significant hacks. Consider the following:
That
Will cause this recursion error to happen. The How can this not be a bug? Thanks. |
I ran into this same issue, and essentially it seems that any exceptions thrown from code that runs in a I have a test app here that displays this behavior. https://stackblitz.com/edit/vitejs-vite-ywc6c5?file=src%2FApp.vue ( |
I can confirm this as well. There's some oddities with this component, like due to the number of moving pieces. But you are correct, any exception will exhibit this behavior - finding the specific exception can be a bit of a challenge. The issue I posted was slightly different, but given your report, replicating it may be challenging. Perhaps this component can be adjusted to trap these exceptions and limit the responsive behavior - presenting the error for readily to the user. Cheers! |
We ran into this issue. |
…oduced by commit 01b38bf
Describe the bug
Starting with Vue v3.4.15, DataTable throws the following error when Row Grouping is used in combination with Advanced (menu type) filters.
Uncaught (in promise) Maximum recursive updates exceeded in component . 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.
Reproducer
https://stackblitz.com/edit/3avo74?file=src%2FApp.vue
PrimeVue version
3.45.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Go to reproducer and check the console.
There are some related issues raised in the Vue repository. https://github.com/vuejs/core/issues?q=maximum+recursive+updates
Expected behavior
No response
The text was updated successfully, but these errors were encountered: