Repository navigation
Combining sse and oob
#2104
Unanswered
fliepeltje
asked this question in
Q&A
Replies: 5 comments
|
Having SSE support out-of-band swaps would also make the SSE extension more in line with the WebSocket extension:
|
0 replies
|
I need this also, in my case i have element listening to its status with sse and once its completed should trigger a notification |
0 replies
|
I second this, support for out-of-bands swaps would be great! |
0 replies
|
Is this implemented? I always thought this is possible, turns out not to be. |
0 replies
|
hi guys |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'd like to keep the element replacement logic on the server side, so ideally I want to send
oobswaps from the server and on certain events. Is there a way of achieving this? I understand it is possible to usehx-triggerto manipulate content in this style, however I prefer using the oob swaps in most cases and that gets me into messy code when I haveinnerHTMLandouterHTMLversions of the same snippet.Alternatively, is there a way of registering new elements to listen to events when you stream them through sse? For instance, when I replace an element with a
hx-triggerwith a new sse event, it will nto listen for it (which is the main reason I end up having to do acrobatics in the first place 😅 )All reactions