Liveview: is_connected macro?

One reason this may not exist already - the map.field notation wasn’t supported in guards until this PR, released in 1.11:

https://github.com/elixir-lang/elixir/pull/9711

Phoenix 1.6 only requires Elixir 1.9+, so Phoenix 1.7 is the earliest version this guard could have been included in.

7 Likes