Implementing Load More functionality with Livewire 3 in 2 minutes.

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 7

  • @DNABeast
    @DNABeast Год назад +12

    But each time you click the button it has to load the entire amount of posts. It's not sustainable and removes the benefit of only loading a few posts. Wouldn't it be better to find a solution that only loads the next five posts and adds it to what's already loaded?

    • @CodewithBurt
      @CodewithBurt  Год назад

      That's correct when you start loading a huge amount. You could chunk it up in parts, list like we do with pages. But for this example we only have a small dataset. But you're 100% correct that this is raw and optimisable. I might do that in another video.

    • @CodewithBurt
      @CodewithBurt  Год назад +2

      Here is an update on that.
      ruclips.net/video/5uWOMhGuV-A/видео.html

  • @AndyZervas
    @AndyZervas Год назад +1

    Thanks a lot! 2 absolutely worthy minutes!

  • @iammuttaqi
    @iammuttaqi 9 месяцев назад +1

    King 👑