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

Draggable grid rerenders #13

Open
ykshev opened this issue Sep 18, 2016 · 0 comments
Open

Draggable grid rerenders #13

ykshev opened this issue Sep 18, 2016 · 0 comments

Comments

@ykshev
Copy link

ykshev commented Sep 18, 2016

I've tried a new observe('todosAutorun', state.projectTodos, handle, cursor); approach and found a serious performance leak compared to the plain action. I have a sortable grid where every item has an order position number. After changing position of one item I updated order number of every item in the collection. If I use action with store.items.replace(data) I will have just one rerender of the grid, but if I use observe('todosAutorun', state.projectTodos, handle, cursor); I will get action 'Images: document changed' (Object) for every item, because its order number has been changed and this action triggers the reaction of whole list rerendering. And if there is a list of 40 items, I will get 40 rerenders.

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

1 participant