/livewire/update not called

Hello, I'm having a strange issue with latest Filament v4 version, on any of my pages, looking on browser Network tab i dont see anymore call to /livewire/update Any idea why ?
7 Replies
Zamion101
Zamion1015w ago
Can you provide some code so that we can se what you are doing with field
LeandroFerreira
please provide more info/code
jamesro
jamesroOP5w ago
sorry my bad, i was using a widget to display some stats, and missed to place this in my custom widget blade file
@php
$statsCards = $this->getStats();
$pollingInterval = $this->getPollingInterval();
@endphp

<x-filament-widgets::widget
:attributes="
(new \Illuminate\View\ComponentAttributeBag)
->merge([
'wire:poll.' . $pollingInterval => $pollingInterval ? true : null,
], escape: false)
->class([
'fi-wi-stats-overview',
])
"
>
@php
$statsCards = $this->getStats();
$pollingInterval = $this->getPollingInterval();
@endphp

<x-filament-widgets::widget
:attributes="
(new \Illuminate\View\ComponentAttributeBag)
->merge([
'wire:poll.' . $pollingInterval => $pollingInterval ? true : null,
], escape: false)
->class([
'fi-wi-stats-overview',
])
"
>
LeandroFerreira
try to add this code in your widget and check if it works:
<div wire:poll>
{{ fake()->sentence() }}
</div>
<div wire:poll>
{{ fake()->sentence() }}
</div>
jamesro
jamesroOP5w ago
yes now works once i've added that code i've mentioned to my widget blade file
LeandroFerreira
Issue in your code, not in Filament/Livewire
Dennis Koch
Dennis Koch5w ago
Is the wire:poll attribute properly passed to the widget?

Did you find this page helpful?