Error message:
[error] GenServer #PID<0.1901.0> terminating
** (MatchError) no match of right hand side value: :external
(phoenix_live_view) lib/phoenix_live_view/channel.ex:152: Phoenix.LiveView.Channel.call_mount_handle_params/2
(phoenix_live_view) lib/phoenix_live_view/channel.ex:443: Phoenix.LiveView.Channel.verified_mount/9
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: {:mount, Phoenix.LiveView.Channel}
This is because the LiveView module is being called from a controller. The handle_params/3
callback is
intended for LiveView modules that are called from the router.
If you want to pass parameters into the LiveView, do so from the controller in the call to live_render/3
.