How to hard page reload after Update button's action is done?

The current state of the Update button on the edit page is that it doesn't hard reload the page.
But I need that somehow.
How to do that? Basically I want that after the update the whole page is hard reloaded - like when you presse cmd + R or ctrl + R in browser.
Solution
protected function getFormActions(): array
{

    return [
        $this->getSaveFormAction(),
        $this->getCancelFormAction(),
        Action::make('pending')
            ->action(function () {
                $this->data['status'] = 'pending';
                $this->save();
                $this->refreshFormData([]);
                return;
            })
            ->visible(fn () => $this->record->status == 'pending')
        ];
}
Was this page helpful?