Skip to content
Discussion options

You must be logged in to vote

I think that in fact hx-swap-oob content is processed fine with hx-boost'ed requests. But their is a major gotcha with it sorry. oob swaps are processed before the rest of the main partial response data. So when you response with a partial response to replace say a targeted form div any oob swap data in the same partial response will be processed first and swapped into various targeted locations in the page and finally the remaining content will be swapped in replacing the form. If you try and target an element inside the targeting form with one of your oob swaps then you will lose it as it will swap in first into the form and then the final response will overwrite the whole form at the e…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@plaxosi
Comment options

Answer selected by plaxosi
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