Change the active relation manager tab

Is there a way of accessing the parent Resource from inside a RelationManager?

E.g I want to change the tab after this action has been called but > Property [$parent] not found on component
->bulkActions([
    Tables\Actions\DeleteBulkAction::make()
        ->after(function (ProductsRelationManager $livewire, Tables\Actions\DeleteBulkAction $action) {
            $livewire->parent->activeRelationManager = array_key_first($livewire->parent->getRelationManagers());
        }),
])


I found $livewire->getPageClass() but this only returns the string
Was this page helpful?