-
Notifications
You must be signed in to change notification settings - Fork 414
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
clusterize.update() fails when there are repeated items #126
Comments
Hello Could you provide some demo on codepen? |
Here's the pen: |
thanks ok, so this happens because after deletion you send EXACT same layout of current cluster. the only difference between rows after row number 80 is numbers. but after deletion you restoring numbers of subsequent rows. layout stored in clusterize cache and updated layout for current cluster are equal, that's why this condition fails for your case. what you can do:
|
Oh thank you very much for the workaround and for the explanation (thanks for the redundance tip too). I'll implement your solution. I'll wait for the update, though. |
Hey @jvribeiro |
Cool! That was pretty fast. |
case Nothing change, could return something in callback ? |
Hey!
I want to remove some items from a list using JavaScript's
.splice()
method. I also use afor
loop to update some items informations before callingclusterize.update()
.It goes fine when there are diferent items in the list and if the viewport is at the end of the list (even if the item repeats), but
clusterize.update()
fails when there are repeated items in the cluster AND if the viewport is not at the end of the list.In this gif you can understand me better:
https://gfycat.com/gifs/detail/RewardingUglyBongo
The text was updated successfully, but these errors were encountered: