Thank you @msaraiva!
So, if I wanted to go with the second option, this is how I have the component that should be rendered when the button is clicked and show_driver_avail_info becomes "true":
<CardInfo :if={{ @show_driver_avail_info? == "true" }} label="Time Since Available" title={{ get_time_since_available(@truck_load) }} small />
When I do this, I don’t get an error, but the <CardInfo /> component still doesn’t show up. Is there something wrong with my handle_event function? It looks like this:
def handle_event(
"show_driver_availability_info",
%{"show_driver_avail_info?" => show_driver_avail_info?},
socket
) do
IO.puts("show_driver_availability_info being called")
socket = assign(socket, :show_driver_avail_info?, true)
{:noreply, socket}
end






















