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

$scrollview.state.lastComponent is not updated properly #13

Open
asgouros opened this issue Mar 19, 2019 · 0 comments
Open

$scrollview.state.lastComponent is not updated properly #13

asgouros opened this issue Mar 19, 2019 · 0 comments

Comments

@asgouros
Copy link

In an Infinite Scroll implementation, after N items are loaded/rendered successfully the $scrollview.state.lastComponent correctly points to the N item.

After that, we are updating all items (asynchronously over AJAX) and re-fetch an initial batch of 10 items (10 < N).

Although using $scrollview.refresh(); on Vue.nextTick the $scrollview.state.lastComponent still is pointing to the previous list's last available item (the N item).

The issue can be overcome by re-setting the lastComponent to an empty object, right after fetching the items, but that solution is not elegant..

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