-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Update queryParams with page and perPage #95
Comments
We don't currently have first class support for that that - it's a little tricky. We do track the However, the lifecycle hooks are probably what you want:
Now your controller (singleton) will always know the last page that the infinityModel loaded. Now when your route is activated, you can re-initialize your infinity model, and trigger the Let me know if this works out for you @Dragsbaek ! |
I have the same problem and have tried your solution. I'm not sure how to keep triggering infinityLoad to bring it to the current page. I tried using scheduling afterrender but that didn't work. I would also like to keep the scroll position. Please help. |
This @michaeldeitcher ! You'd prob want to do something like this:
|
Keeping track of the scroll position is something you'd need to do with a scroll handler in the view & controller |
In my app, i have an infinity-list of items and a detail-view. I would like to store the current_page, so that navigating back from the detailview will take the user to the last position.
Is that possible?
The text was updated successfully, but these errors were encountered: