Svennnn wrote a reply+100 XP
2mos ago
Svennnn started a new conversation+100 XP
2mos ago
Following use case:
I have a page-component that displays a lot of threads. Loading the threads takes a moment, so I wrapped that access to my
#[Computed]
public function threads()
in an
@island(name: 'threads', lazy: true)
That way I can still render the rest of the layout. Including filters, which live outside the island in the same component.
<x-stupid.button href="#" wire:click="toggleFilter('unread')" :variant="collect($filters)->contains('unread') ? 'primary' : 'default'" size="sm">Ungelesen</x-stupid.button>
Is there a way to trigger the refresh from within toggleFilter?
My list is only updated, from events within the island.
Basicly I want: initaly lazy but after that mutate with the rest of the page