feat: auto-reload results when fuel type, sort, or radius changes

This commit is contained in:
Ovidiu U
2026-04-05 20:50:18 +01:00
parent d4d532000d
commit dce2bd6e50

View File

@@ -28,6 +28,27 @@ class StationSearch extends Component
public ?string $apiError = null;
public function updatedFuelType(): void
{
if (! empty($this->meta)) {
$this->findStations();
}
}
public function updatedSort(): void
{
if (! empty($this->meta)) {
$this->findStations();
}
}
public function updatedRadius(): void
{
if (! empty($this->meta)) {
$this->findStations();
}
}
public function findStations(): void
{
$this->validate();