nizlee
InteractsWithPageFilters doesn't refresh the Widget on filter change
In case anyone else comes across this, a livewire component was desired and all that was needed was the #[Reactive] property to be added to the public variable declaration in the component based on the property that is passed into the component. Little bit of livewire documentation for further context.
https://livewire.laravel.com/docs/nesting#reactive-props
11 replies
InteractsWithPageFilters doesn't refresh the Widget on filter change
Don't mean to hijack this thread but I'm running into a similar issue. I'm using v3.1.42 and when I select a date from a date picker in the default dashboard header actions, the value operates as normal for a classic filament widget located in the widgets folder. But when I break that widget out into a livewire component and pass $this->filters to the component, the picked date does not update until I hard refresh the page.
Any ideas what I'm missing or might be doing wrong?
11 replies