Skip to content
Discussion options

You must be logged in to vote

sorry the hx-reswap header can only be used to change the response to a different swap style from the supported list here: https://htmx.org/attributes/hx-swap/

There is no 'oob' swap style and you normally use the https://htmx.org/attributes/hx-swap-oob/ hx-swap-oob attribute in your response content to get oob swaps to work. But this setup is designed to handle additional swaps that happen as well as the main normal swap when needed. If you just returning a single swap data from your response then you probably do not want to use this feature. If you were responding to say a form submit with a response that could be a new form or a response that removes or replaces the form but you also w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tabrez96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants