Skip to content

Commit 071e8f7

Browse files
committed
Use LiveView navigation to go back to the dashboard
Since both the dashboard and the error page are in the same live_session we can navigate between them using LiveView navigation instead of triggering a full page reload. This is more efficient as we don't need to negotiate TLS and fetch assets again.
1 parent 0f5b09a commit 071e8f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/error_tracker/web/live/show.html.heex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<div class="my-6">
2-
<.button type="link" href={dashboard_path(@socket, @search)}>« Back to the dashboard</.button>
2+
<.link navigate={dashboard_path(@socket, @search)}>
3+
<.icon name="arrow-left" /> Back to the dashboard
4+
</.link>
35
</div>
46

57
<div id="header">

0 commit comments

Comments
 (0)