Hosna QasmeiH
Convex Community2y ago
63 replies
Hosna Qasmei

What is the best way to implement infinite scrolling with Convex

I have this function to call all the items in a table

export const getPortfolios = query({
  handler: async (ctx) => {
    return await ctx.db.query('portfolios').collect();
  },
});


I want to implement infinite scrolling, so rather than overloading the app only show more items when scrolling wanted to know if there is a way I can do this server side rather than client side.
Was this page helpful?