If i’m using Inertia like this:
This is a web route:
public function index()
{
return Inertia::render('Posts/Index', [
'posts' => Post::cursorPaginate(20),
]);
}
But on that page have infinite scroll, should the infinite scroll script call an API route for subsequent data?