htmx-extensions
htmx-extensions copied to clipboard
SSE: allow custom swapping strategies (such as idiomorph)
Description
Implemented the change described in #164 to include the swapOptions.contextElement-parameter with the api.swap call to ensure that HTMX extensions implementing custom swapping modes can be discovered from hx-swap tags in the DOM.
Htmx version: v2.0.4 Used extension(s) version(s): v2.2.3
Corresponding issue: #164
Testing
Checklist
- [x] I have read the contribution guidelines
- [x] I ran the test suite locally (
npm run test) and verified that it succeeded
Deploy Preview for htmx-extensions canceled.
| Name | Link |
|---|---|
| Latest commit | 82db5bce51d2a255f0bcc6b93da5dd35130a296d |
| Latest deploy log | https://app.netlify.com/sites/htmx-extensions/deploys/6822664e4659f9000863d061 |