prehistoric-camera-13489
02/03/2022, 2:41 PMprehistoric-camera-13489
02/03/2022, 2:41 PMbrief-sugar-79424
02/03/2022, 2:42 PMbrief-sugar-79424
02/03/2022, 2:43 PMprehistoric-camera-13489
02/03/2022, 2:43 PMprehistoric-camera-13489
02/03/2022, 2:45 PMbrief-sugar-79424
02/03/2022, 2:46 PMprehistoric-camera-13489
02/03/2022, 2:46 PMbrief-sugar-79424
02/03/2022, 2:46 PMprehistoric-camera-13489
02/03/2022, 2:46 PMbrief-sugar-79424
02/03/2022, 2:46 PMprehistoric-camera-13489
02/03/2022, 2:48 PMbland-coat-6833
02/03/2022, 2:50 PMhtml
<table class="dt" hx-sse="connect:/newmail/{{ mailbox }}/">
<thead>
<tr>
<th>To</th>
<th>From</th>
<th>Subject</th>
<th>Date</th>
</tr>
</thead>
<tbody hx-trigger="sse:new_mail" hx-swap="afterbegin">
Can anyone see why my SSE events aren't being prepended to my tbody? The events are coming in okay. They just don't seem to be being added.brief-sugar-79424
02/03/2022, 2:54 PMbrief-sugar-79424
02/03/2022, 2:55 PMalert-parrot-35796
02/03/2022, 2:57 PMalert-parrot-35796
02/03/2022, 2:58 PMalert-parrot-35796
02/03/2022, 3:12 PMbland-coat-6833
02/03/2022, 3:16 PMhtml
<tbody hx-sse="connect:/newmail/{{ mailbox }}/ swap:new_mail delay:1s" hx-swap="afterbegin">bland-coat-6833
02/03/2022, 3:17 PMhx-sse on the tbody seems to have fixed it. I could have sworn that it was possible to put the sse on some other element and then have other elements listen for messageslate-king-98305
02/03/2022, 3:18 PMbland-coat-6833
02/03/2022, 3:19 PMbland-coat-6833
02/03/2022, 3:23 PMhx-trigger="sse:new_mail" which will have been trying to trigger a request or similar. I needed hx-trigger="swap:new_mail".... That does the swaps that I need.late-king-98305
02/03/2022, 3:29 PMbland-coat-6833
02/03/2022, 3:56 PManimate__pulse to the new ``s I'm sending via SSE and new table rows get a little pulse when they get added.prehistoric-camera-13489
02/03/2022, 4:00 PMprehistoric-camera-13489
02/03/2022, 4:03 PMprehistoric-camera-13489
02/03/2022, 4:04 PMmysterious-toddler-20573
02/03/2022, 4:08 PMprehistoric-camera-13489
02/03/2022, 4:09 PM