Skip to content
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

Unique identifier stability problem when changing the list. #51

Open
FunMiles opened this issue Dec 29, 2020 · 1 comment
Open

Unique identifier stability problem when changing the list. #51

FunMiles opened this issue Dec 29, 2020 · 1 comment

Comments

@FunMiles
Copy link

This virtual list is a remarkably concise code for what it does. Thanks, RIch.

I started using it in a test app in which I am showing database content. I hit a little problem when my data is altered (from a push from another editor) and the update gives a rather strange result.
I think it is rooted in the few lines of code in the {#each visible as row (row.index)} block. The id for each item is simply the row.index.
The example has a key variable to the data. Could it, or another data (id ?) in the array serve as a unique id for each object's rendering ?

@gitbreaker222
Copy link

gitbreaker222 commented May 8, 2021

looks like the virtual-list doesn't get that much attention right now. Have you been able to fix the strange result? Otherwise it would be nice to have a little repl, so others can get a look on that issue 🙂

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

No branches or pull requests

2 participants