-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Clear cells and cellMap when items changes #110
Conversation
Sorry for not replying sooner, been busy with work and prepping to emberconf. I'm hoping to hack on ember-collection a bit this week and can dig into this more than, but II think you can just set the cells index here to |
Yep looks like that fixes the problem too. Thanks for looking at this. I'm at emberconf this week I'd love to chat to you about how exactly why this works if you have some spare time. I find that |
@paddyobrien sure thing... I'll do my best to explain things, it's actually not tooo bad, just needs a bit of commenting. Find me at emberconf, I'll be giving my talk end of day 1, so I might be less distracted day 2. |
Any thoughts on merging this? I'm 90% sure the test failure is a false negative but I don't have permissions to kick it off again. |
|
This problem still exists? |
@raytiley I re-poked this to build again and it looks like it's passing now. I suspect the failure was a result of something being broken in the beta channel. |
Merge that pr please, it works pretty good |
+1 |
@raytiley is there anything else that needs to be done here? |
+1 |
Any reason why this has not merged yet ? |
Hey Everyone... Sorry for not really having a hand on the wheel here. I'll try to poke some people and see what the long term fate of this project is. Honestly I think that most of the early contributors don't have any itches to scratch with ember-collection at the moment, hence the radio silence from us. |
I ran into an issue with ember-collection where indexes are not correctly set when the
items
array changes to a new array which is a subset of the previous array. The use case was providing a filterable list of items to ember collection.It seems the item indexes are cached on the cell and never updated. I've added calls in
updateItems
to clear_cells
and_cellMap
wheneveritems
changes. I think this makes sense but I might be missing some broader performance considerations.