Table update after action

Hi, im using filament as livewire components without full panel.

On user detail page I have user infolist component - there is section with headerActions (form for adding user documents) and user document table inside schema.

Section::make('Documents')
    ->id('documents')
    ->headerActions([
        Action::make('Add document')
            ->form($this->userDocumentForm->schema())
            ->action(function (array $data, User $user) {
                $this->userDocumentForm->action($data, $user);
            })
    ])
    ->schema([
        Livewire::make(UserDocumentTable::class, ['userId' => $this->user->id])->key('user-document-table'),
    ]),


what is correct way to update user document table to show updated data after create (or edit/delete) in my case?

thank you!
Was this page helpful?