-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Resetting the starting page? #91
Comments
Here's the example code: applicationModel is just an interface for the infinityModel method. I have moved all of the setup stuff into a mixin class to keep my routes a little slimmer. |
Looks like #90 is pretty close to what I need so I am gonna close this! Much appreciation to the hard work being done on this to HHFF and cohorts 👍 |
I've been calling To be honest, when I first started implementing it, I assumed infinityModel would actually observe the bound properties, and automatically reset from page 1 when they change. Some documentation clarification on this whole area would be great. |
a PR would be great @DuBistKomisch 👍 |
HHFF -- great work with this package, it's been really easy-breezy so far. It's been working great at the basics, but I have run into an issue with a bound parameter and maybe I'm just doing it wrong.
I am passing a bound filter parameter called "year", and want to dynamically change which year I am looking at with a select. I have successfully bound this parameter and it's doing what I expected with one slight caveat...
I default to 2015, which has 2 pages to load. When I switch to 2014 and clear the store for my model (resetting the list, essentially) it loads the first page as page 2 of 2 instead of page 1 of 2 as a new set of pages to load from.
What is the best practice here? Should I reload the page with a query parameter for year and just do it that way or is there a way to do it without a refresh by just resetting the startingPage parameter of the InfinityModel?
The text was updated successfully, but these errors were encountered: