Skip to content

Commit 8c48927

Browse files
committed
fix(dashboard): SSE message triggers a tbody re-fetch (was overwriting rows with bare event id)
1 parent a1a5315 commit 8c48927

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/dashboard/templates/sessions.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ <h2>Sessions</h2>
1818
</form>
1919
<table>
2020
<thead><tr><th>Session</th><th>Latest host</th><th>Events</th><th>Flags</th><th>Latest event</th></tr></thead>
21-
<tbody hx-ext="sse" sse-connect="/api/live" sse-swap="message">
21+
<tbody hx-ext="sse" sse-connect="/api/live"
22+
hx-trigger="sse:message"
23+
hx-get="/"
24+
hx-select="tbody"
25+
hx-swap="outerHTML">
2226
{{ range .Sessions }}
2327
<tr>
2428
<td><a href="/sessions/{{ .Key }}">{{ .Label }}</a></td>

0 commit comments

Comments
 (0)