Skip to content

Commit e04c1c2

Browse files
committed
Remove interval from view source
1 parent d7a42a9 commit e04c1c2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/components_guide_web/live/view_source.ex

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ defmodule ComponentsGuideWeb.ViewSourceLive do
121121

122122
@impl true
123123
def mount(%{}, _session, socket) do
124-
if connected?(socket), do: :timer.send_interval(5000, self(), :update)
125-
126124
state = State.default()
127125
socket = assign_state(socket, state)
128126
{:ok, socket}
@@ -154,11 +152,6 @@ defmodule ComponentsGuideWeb.ViewSourceLive do
154152
end
155153
end
156154

157-
@impl true
158-
def handle_info(:update, socket) do
159-
{:noreply, socket}
160-
end
161-
162155
def headers_preview(assigns) do
163156
~H"""
164157
<h2>Response Headers</h2>

0 commit comments

Comments
 (0)