Typed property Filament\Widgets\TableWidget::$table must not be accessed before initialization.

$this->getTableFilterState("key")["value"] returns the error $table must not be used before initialisation when I try to retrieve the current filter value.
5 Replies
Skjena
SkjenaOP2y ago
I made a custom table widget and designed my filter fields inside getTableFilters(). Inside getTableQuery(), I called $this->getTableFilterState("key")["value"] to obtain the filter value. It worked well in version 2, but in version 3, it gives $table must not be accessed before initialization.
Jota Ele
Jota Ele2y ago
can you resolved it?
Skjena
SkjenaOP2y ago
Yes, however, I'm unable to get the current filter value. Could you please help me?
Jota Ele
Jota Ele2y ago
i asked because i has the same problem bro
pocket.racer
pocket.racer8mo ago
same problem too, sometimes happen when switching the select choice in a dashboard filter or when the dashboard page with form filters load

Did you find this page helpful?