infoderm / patients

:face_with_thermometer: Patients meteor app
GNU Affero General Public License v3.0
5 stars 2 forks source link

Replace pagination by infinite-scroll? #186

Open make-github-pseudonymous-again opened 3 years ago

make-github-pseudonymous-again commented 3 years ago

We already load all preceding pages anyway (since we do not use something similar to percolate:find-from-publication). Given the same content to display, this change would not increase the data transfer. See https://github.com/infoderm/patients/blob/0641c9276a78770129aa5c80a065c99d19e5da0b/imports/api/pageQuery.js#L5

Whether it improves user experience has to be decided.

make-github-pseudonymous-again commented 3 years ago

Maybe we can keep a separate .../page/x url functionality? Or combine the two in some way?

make-github-pseudonymous-again commented 3 years ago

Using for instance https://github.com/bvaughn/react-window

make-github-pseudonymous-again commented 2 years ago

react-virtual seems like a better pick.

make-github-pseudonymous-again commented 2 years ago

See https://codesandbox.io/s/stupefied-knuth-we26fo?file=/src/main.jsx