Replies: 1 comment 1 reply
-
I think oob swaps are done first: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
consider the following demo:
index.html
other.html
I'd expect that clicking the link swaps out the
h2
and link text accordingly, ashx-boost
is set up to swap out the entire body.instead clicking the boosted link makes the header disappear. after I remove
hx-swap-oob
, it works fine.you might wonder why hx-swap-oob is present at all. that's because on another page I'm using hx-swap to instead of hx-boost to enable a more sophisticated replacement of content. I don't want to use conditions on the server to satisfy both usecases because that means the HTML fragment will be loaded and cached twice.
is this kind of thing possible at all? is there some fallback behavior for
hx-swap-oob
that would leave the element alone if a target ID can't be found in the parent page?thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions