-
Notifications
You must be signed in to change notification settings - Fork 236
pager refactored #1417
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
pager refactored #1417
Conversation
|
This looks much tighter. Only adds 61 more lines of code. I'll have some time to test this out tomorrow. |
|
The selected number of results don't seem to be sticky on two of the endpoints: /favorite/recent and /author/MIYAGAWA/releases Maybe an issue with the JS? |
|
One other issue is that the pager can sometimes appear on a page with no results, like /author/MIYAGAWAX/releases That page should return a 404 (not your problem to fix) but it's an example of the page just appearing regardless of results. |
|
Strange. I just checked /favorite/recent and it was sticky for me. Two things that might be the issue you see: /favorite/recent and /recent share the same key in localStorage. They can be separated if that's preferable. This whole thing of "pages size" only works if someone arrives from an internal link to one of the URLs. This is due to the fact that we store the information in the browser, and add the size=?? parameter to the links when the user clicks on them, and then we decide on the amount of results in the server. To this I can see three solutions:
Do you see any other solution to the problem? |
|
Yeah, that sounds a bit complicated. Let's just merge this and see what kind of feedback we get. Thanks very much for all of your revisions. 👍 |
|
Thanks. |
No description provided.