Skip to content

InfiniteList renders duplicate keys and shows unstable sort results #10661

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

Open
emanuelfrua opened this issue Apr 12, 2025 · 2 comments
Open

Comments

@emanuelfrua
Copy link

emanuelfrua commented Apr 12, 2025

When using InfiniteList with a DatagridConfigurable and server-side sorting, I occasionally encounter this warning:

Encountered two children with the same key, 716a838d-684f-4588-a941-50414c5fce8d.
This happens even though:

All records have a unique id

The backend returns correct, paginated, sorted, non-duplicated data

The sort is handled correctly by the backend

The list sometimes shows records in the wrong order after switching sort direction, or re-renders the same row multiple times, especially on the first scroll.

When I switched to List instead of InfiniteList it works fine.

@fzaninotto
Copy link
Member

Thanks for your report. However, without the ability top reproduce this error, we can't investigate it. Can you please join a repro?

@emanuelfrua
Copy link
Author

@fzaninotto Hi Francois, yes, of course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants