I set up events to do exactly what you’re doing but with a different problem, but I wonder, does it make more sense to use live_patch links from your template with the query params in tact and then use handle_params at the LV level to grab those params?
This means the event handler would go away and having to push_patch from the LV itself since live_patch already pushes it to the URL.
Just asking because the above applies to your example too. I wonder what folks think about this. What would be the way to do this?
What’s interesting is the --live generator from Phoenix 1.5 includes making a search form using the event style but in their case, they are doing an external redirect so maybe the use case is different.






















