mpiet
Action in custom modal content: Update modal content after action performed?
I have a page that renders records. I have an action to open a modal. I pass a subset of records to this modal action. I render the subset of records in the custom modal content. I also added an action to delete a single record. The overall page updates, and the record is removed. But inside the custom modal content I still see the record.
How can I update the modal content? Or make it reactive?
Here's some code:
3 replies
Docs for table: return type doesn't seem to match contract
I get
Declaration of App\Livewire\ListProducts::table(Filament\Tables\Table $table): Filament\Tables\Table must be compatible with Filament\Tables\Actions\Contracts\HasTable::table(Filament\Tables\Table $table): static
when I copy public function table(Table $table): Table { ...
from the docs at https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
What could I be missing?3 replies