Call action method from livewire

Can an action method be invoked in Livewire? I attempted to call an action method within the mount and rendered methods of Livewire, but it doesn't seem to be working.
public function rendered()
{

$this->register();
}

public function register(): Action
{
return Action::make('register')
->form([

...

])
->closeModalByClickingAway(false)
->modalCloseButton(false)
->action(

);
}
public function rendered()
{

$this->register();
}

public function register(): Action
{
return Action::make('register')
->form([

...

])
->closeModalByClickingAway(false)
->modalCloseButton(false)
->action(

);
}
3 Replies
waleedGRT
waleedGRT6mo ago
fi
waleedGRT
waleedGRT6mo ago
Certainly, you're correct. I've adhered to the instructions outlined in the documentation, but I'm interested in automatically triggering the actions function and displaying the model on the screen when the page loads. Is there a way to achieve this?