Lazy Load from Sequelize and React
I have a next.js app that uses react-table on the front end and gets data from a postgres database using sequelize. The initial query is very slow as it pulls all records at once (approx. 10K). I’d like it to only display the first 20 (value depends on what the user selects from the dropdown so 20, 50, or 100), then lazy load the rest as the user navigates the table (whether they’re going forward or backward). Is there a way to do this?