Will paginate, with hotwire

Hi guys, any tips on how to get will paginate (GitHub - mislav/will_paginate: Pagination library for Rails, Sinatra, Merb, DataMapper, and more) to work with turbo frames?

It would be nice for everytime you click on a paginate link, only update a part of the page.

Thanks, let me know what you think.

Also, the links don’t work with the new turbo.

You can wrap the page with a turbo frame tag, the list of items as well as the pagination links

You can definitely do that with turbo frame tags however think twice if that’s what you really need;

Datatables or data contained within a pagination structure usually requires CRUD manipulation. This is where turbo frames will show its shortcomings which means you might want to look for turbo streams instead or a combination of them both…