❄️ The winter sale is here. 25% off for a limited time. Join us →
Fast Infinite Scroll with Livewire

04. Fetching records for a chunk

Source code on GitHub

Infinite scrolling in Livewire can be simple to implement, but things slow down as more data rolls in.

In this short course, we’ll look at a technique to load batches of records upfront, then fetch and render each batch only when its needed.

The result? No drop in performance, regardless of how many records a user scrolls through.