Different approach to cards using livewire renderless instead of loading all data on every loadMoreItems call
#119
Abdulmajeed-Jamaan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
The request gets heavier and accumulate on every loadMoreItems requests trigger, causing more memory usage and unecessery database queries, and more bytes transmission over the network.
Solution:
Separate the client from the server via utilizing function with attribute
#[renderless]to be called by alpine js as ajax to load more items instead of requery every thing every time trying to load more cards and get heavier over the network on every loaded more items count, for samples check filament code search for#[renderless]And for older cards updates, we might utilize laravel realtime websockets setup for example pusher.
Beta Was this translation helpful? Give feedback.
All reactions