strong-machine-53662
05/20/2023, 2:51 PMstrong-machine-53662
05/20/2023, 2:51 PMred-farmer-97020
05/20/2023, 2:59 PMred-farmer-97020
05/20/2023, 3:19 PMred-farmer-97020
05/20/2023, 3:26 PMthrottle
or delay
on hx-sync that cancels in flight requests the moment any input has taken place, but doesn't send a new request until the throttle or delay has finished. I think that guarantees no input be overwritten due to latencyshy-zebra-22292
05/20/2023, 3:44 PMstrong-machine-53662
05/20/2023, 3:45 PMState Management
, hooks
and so on π
I'm pretty excited to give this a goshy-zebra-22292
05/20/2023, 3:47 PMstrong-machine-53662
05/20/2023, 3:50 PMgray-rocket-3571
05/20/2023, 5:22 PMhundreds-jordan-64279
05/21/2023, 5:06 AMgreat-cartoon-12331
05/21/2023, 5:07 AMhundreds-jordan-64279
05/21/2023, 5:10 AMshy-zebra-22292
05/21/2023, 5:11 AMhundreds-jordan-64279
05/21/2023, 5:38 AMhx-swap-oob="#cssA, #cssB, #cssC"
? sorry couldn't find in the docsgreat-cartoon-12331
05/21/2023, 5:45 AMhtml
<div>normal target</div>
<div id="cssA" hx-swap-oob="true">...</div>
<div id="cssB" hx-swap-oob="true">...</div>
<div id="cssC" hx-swap-oob="true">...</div>
hundreds-jordan-64279
05/21/2023, 5:48 AMgreat-cartoon-12331
05/21/2023, 5:49 AMhundreds-jordan-64279
05/21/2023, 5:51 AMhundreds-jordan-64279
05/21/2023, 6:27 AMshy-zebra-22292
05/21/2023, 12:26 PMstrong-hydrogen-91524
05/21/2023, 6:20 PMstrong-hydrogen-91524
05/21/2023, 6:27 PMgreat-cartoon-12331
05/21/2023, 6:42 PMgray-zebra-72301
05/22/2023, 9:38 AMtarget
, the class is present, but in the actual DOM it is not:
js
const afterSwapHandler = async e => {
const detail = e.detail;
const id = detail.elt.id;
const image = detail.elt.querySelector('header > img');
if (image) await imageLoaded(image);
const target = htmx.find(`#${id}`);
target.classList.add('loaded');
console.log(target) // the target contains the 'loaded' class
}
It seems like htmx is removing the added class. How can I keep it?gray-zebra-72301
05/22/2023, 11:50 AMafterSettle
event instead. Problem solved.bland-rainbow-1285
05/22/2023, 1:03 PMrefined-pillow-25368
05/22/2023, 1:06 PMrefined-pillow-25368
05/22/2023, 1:08 PMmysterious-toddler-20573
05/22/2023, 3:37 PM