We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f154cac commit 05320d6Copy full SHA for 05320d6
lib/phoenix/sync/live_view.ex
@@ -209,8 +209,10 @@ if Code.ensure_loaded?(Phoenix.Component) do
209
if Phoenix.LiveView.connected?(socket) do
210
client =
211
Keyword.get_lazy(electric_opts, :client, fn ->
212
- get_in(socket.private[:connect_info].private[:electric_client]) ||
213
- Phoenix.Sync.client!()
+ case socket.private[:connect_info] do
+ %{private: %{electric_client: client}} -> client
214
+ _ -> Phoenix.Sync.client!()
215
+ end
216
end)
217
218
Phoenix.LiveView.stream(
0 commit comments