Trying to update Select field options when another field is updated?

Here is my code below. locations is a variable on my livewire component that contains the form schema

 Toggle::make('floridaOnly')
                        ->default(true)
                        ->reactive()
                        ->afterStateUpdated(function (Closure $set, $state) {
                            $this->locations = AlamoLocationsFormatter::getFilterOptions(
                                SearchAlamoVehicleLocations::handle()->body(), $state
                            );
                        })
                        ->columnSpan(3),
                    Select::make('fromLocation')
                        ->options($this->locations)
                        ->searchable()
                        ->required(),


Not sure if "after state updated" is where this type of logic should go. But basically, I send the state in (true or false) and based on that i run a filter and return the locations. The locations value is being changed by this afterStateUpdated hook, but the options in the below select field "fromLocation" aren't being updated.
Was this page helpful?