billions-microphone-84331
09/16/2021, 4:14 PMHX-Request header, and if it exists, only extract and return the body (or content, as you say) in the response.salmon-xylophone-28580
09/17/2021, 2:12 PMbillions-microphone-84331
09/17/2021, 2:33 PMrough-house-87517
09/17/2021, 2:49 PM<div hx-sse=... and at the same time show new messages only for a short amount of time - I just haven't found it I guess 🙂mysterious-toddler-20573
09/17/2021, 2:56 PMmysterious-toddler-20573
09/17/2021, 2:57 PMhtml
<div _="on load wait 3s then
transition my opacity to 0 then
remove me">
...
</div>rough-house-87517
09/17/2021, 3:08 PMrough-house-87517
09/17/2021, 3:08 PMmysterious-toddler-20573
09/17/2021, 3:19 PMworried-dawn-97808
09/17/2021, 3:27 PMancient-apple-84923
09/17/2021, 10:54 PMdocument.body.addEventListener('htmx:configRequest', function(evt) {
evt.detail.parameters['auth_token'] = getAuthToken(); // add a new parameter into the mix
});
I want to do exactly the same thing, but my getAuthToken returns a promise (issues an HTTP request), is there a way to block until it's done? I.e. I want every request issued by my application to wait on the response of another request that solicits the auth token.mysterious-toddler-20573
09/17/2021, 11:51 PMmysterious-toddler-20573
09/17/2021, 11:51 PMancient-apple-84923
09/17/2021, 11:57 PMfetch based utility that they'd like people to use, but it's feeling a bit tricky to align with HTMX. Ideally I guess I'd like to add an interceptor and delegate everything to that utility, I suppose?mysterious-toddler-20573
09/18/2021, 12:05 AMmysterious-toddler-20573
09/18/2021, 12:05 AMmysterious-toddler-20573
09/18/2021, 12:06 AMancient-apple-84923
09/18/2021, 2:02 AMhttps://cdn.shopify.com/shopifycloud/shopify_dev/assets/partners/jwt-auth-flow-d38569ac76038a22e32b79e860640088dde0212d2bc3b0d8132debd6158264c6.png▾
ancient-apple-84923
09/18/2021, 2:04 AMmysterious-toddler-20573
09/18/2021, 2:07 AMmysterious-toddler-20573
09/18/2021, 2:08 AMmysterious-toddler-20573
09/18/2021, 2:09 AMmysterious-toddler-20573
09/18/2021, 2:09 AMancient-apple-84923
09/18/2021, 2:13 AMancient-apple-84923
09/18/2021, 2:13 AMancient-apple-84923
09/18/2021, 2:15 AMancient-apple-84923
09/18/2021, 2:15 AMancient-apple-84923
09/18/2021, 2:16 AMancient-apple-84923
09/18/2021, 2:17 AMmysterious-toddler-20573
09/18/2021, 2:42 AM