Paginating regardless of model is
This is a very opinionated take, but pagination is a fail case for me, so I’m perfectly happy simplifying it with an infinite scroll controller and focusing my efforts on helping them find the thing they’re looking for quickly.
One way you can do this is loading all the relevant customer/company data in a field for search, creating a search index for that, and exposing a search field to the end user. This way, whenever they’re trying to find someone phone number, name, email, etc… they’ll return in the search results.
I will say that Convex doesn’t do as great of a job at being a search engine, but this method will handle 90% of use cases just fine. Anything more complex and you’ll have to load in a proper search engine like Elastic.
