Open dsevillamartin opened 3 years ago
I took a look through the pagination util commit, and I don't think it's nearly as bad as what you said makes it out to be. There are definitely some non-trivial data ownership issues, but in the long term it's probably necessary.
I also wonder whether it could replace some of the pagination of PostStream... Although that uses a per-post URL scheme. Kinda related: https://github.com/flarum/core/issues/2397 (pagination could definitely set some canonical stuff?)
@askvortsov1 Thanks for looking through it.
I think it might be a good idea if someone else is able to focus on developing this & perhaps improving on my code (if we do want to go that route). Every time I try to tackle this issue it doesn't go well (regarding time and the end result 😄).
Consider making PostStream abstract, it could be a base for a pagination / infinite scroll system
Issue created from flarum/framework#1829 and flarum/framework#1820 (pts 2 & 4). flarum/framework#1820 in particular has a lot of useful discussion.
Problems:
?page=
parameterSolutions:
Comments from the PR