I had a strange CaseClauseError earlier when my app reloaded while reacting to a fresh deploy. Is this error something I’ve missed, or possibly a bug in LiveView?
I’m still having these errors fairly often and am stumped as what’s causing them. They’re frequently after I push a new release and my browser reconnects to the updated server. But today it happened when my wifi went out for a bit and the browser tried to reconnect. Are there any parts of the Route that look out of place to cause this match error?
I think all my Route and UserAuth code is just straight out of phx.gen.auth, but I maybe missed some fixes in one of the 1.7 RCs.
Maybe a bit late, But im having the same issue using latest Phoenix Framework 1.7.7 at the moment. Receive this error when try to set redirection after cancel modal on liveview
I was experiencing this issue as well. I realized that the route being passed to JS.patch was not within the same LiveView but still within the same LiveSession.
Once I added some logic to switch between JS.patch and JS.navigate depending on the route, I didn’t experience any further errors.
I haven’t had this issue ever since the fix was pushed to LiveView back in March. Before then I had constant errors after deploys or loss of connectivity.