Refresh page data from resource form action

I need to call refreshFormData (https://filamentphp.com/docs/3.x/panels/pages#refreshing-form-data) from an action within a resource form, but that method is on the page. How can I access the page component from the action method?
Solution
I managed to get this fully working with:
->action(function (array $data, Forms\Components\Repeater $component) {
    Chapter::create($data, ...);
    $component->clearCachedExistingRecords();
    $component->fillFromRelationship();
})

Thanks again for your help!
Was this page helpful?