I’m getting started with Remix.
What is the recommended way to request server side pagination data in an Index Table using Remix?
Here’s a few things I’ve considered:
- Using
useSubmit and an action on the same route
- Using a Fetcher.load() to request data from an API route (does not return a Promise though)
- Using fetch() to get data from an API route
Hey @Appifiny
I was also looking for a solution on how to do this in Remix…
And the only working solution for me is to use searchParams + loader method
here is a helpful article that explains it in detail
https://www.jacobparis.com/content/remix-pagination
Let me know if you find any other solution. IMHO this solution is ugly 
For example, in my case, I need to get a date from a third-party API. and the simplest and most obvious solution would be to use fetch.. But not in the case of Remix 