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

infinite lists #3

Closed
3 tasks done
WebReflection opened this issue Mar 6, 2017 · 1 comment
Closed
3 tasks done

infinite lists #3

WebReflection opened this issue Mar 6, 2017 · 1 comment
Assignees

Comments

@WebReflection
Copy link
Owner

WebReflection commented Mar 6, 2017

The current sameList related logic works well for finite lists but re-append same nodes when the length changes.

While it's not too relevant to cover less items than before, the infinite scrolling might be quite a use case.

TODO

  • sameList should return different values if the operation is substitute, same, or similar, where latter means that up to N live nodes lists are same and the new fragment should contain less nodes
  • update the content accordingly, dropping nodes in the lower range, adding nodes if needed after
  • profit
@WebReflection
Copy link
Owner Author

  • substitute means nodes are already different at index 0
  • same means there's nothing to do
  • similar means there is a known index to start replacing from

Apologies @marcoscaceres I forgot to create a branch and when I've pushed was already too late.

If there's anything obviously wrong in my last commit, please let me know.

Thank you!

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

No branches or pull requests

1 participant