Hi there, I've testing sse extension in my project and it's working as expected for swapping the content. However, I want to add new message below like chat message. And when I tried hx-swap with hx-target but that also seems to update the target instead of appending it.
<div hx-ext="sse" sse-connect="/search/{{ query.id }}/" sse-swap="message" hx-target="#result" hx-swap="beforeEnd">
Hang tight we are fetching your results.
<div id="result"></div>
</div>

I need the end result should be like append into each box.
<div hx-ext="sse" sse-connect="/search/{{ query.id }}/" sse-swap="message" hx-target="#result" hx-swap="beforeEnd">
Hang tight we are fetching your results.
<div id="result">
<div class="box></div>
<div class="box></div>
<div class="box></div>
<!-- As soon as new message arrives this result get appended.-->
</div>
</div>
Let me know if this possible with sse or any alternatives thanks.
Hi there, I've testing sse extension in my project and it's working as expected for swapping the content. However, I want to add new message below like chat message. And when I tried
hx-swapwithhx-targetbut that also seems to update the target instead of appending it.I need the end result should be like append into each box.
Let me know if this possible with sse or any alternatives thanks.