action = $action; return $this; } public function getAction(): ?Closure { $action = $this->action; if (is_string($action)) { $action = Closure::fromCallable(class_exists($action) ? $action : [$this->getLivewire(), $action]); } return $action; } }