bigskysoftware / bigskysoftware/htmx-extensions
SSE swap with `transition:true` doesn't trigger view transitions
- Dominant language
- JavaScript
- Stars
- 284
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
It seems like the view transitions API of HTMX doesn't play nicely with the SSE extension (maybe related to https://github.com/bigskysoftware/htmx-extensions/issues/65?)
With the following HTML, the elements do not have an animated transition when updated via SSE (just shuffling the order of them), but when the order is shuffled via the GET request from the button they do transition as expected (with an animation).
```
- a
- b
- c
- e
Click
```
Contributor guide
Research direction
Start with the SSE extension's swap handling and compare it with the button's hx-get swap path using the HTML reproduction in the issue. Check how each path handles htmx view transitions when transition:true is set. Done means SSE updates animate the reordered list elements in the same way as the button-triggered update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100