mysterious-toddler-20573
08/31/2020, 2:28 AMgorgeous-ghost-95789
08/31/2020, 2:48 AMwooden-wall-85896
08/31/2020, 5:06 PMwooden-wall-85896
08/31/2020, 5:06 PMbig-airline-13935
08/31/2020, 5:37 PM_hyperscript.start();
? (when not used with htmx)mysterious-toddler-20573
08/31/2020, 8:45 PMmysterious-toddler-20573
08/31/2020, 8:46 PMmysterious-toddler-20573
08/31/2020, 8:46 PMmysterious-toddler-20573
08/31/2020, 8:46 PMbig-airline-13935
08/31/2020, 9:43 PMmysterious-toddler-20573
09/01/2020, 3:01 AMwooden-wall-85896
09/01/2020, 3:01 AMmysterious-toddler-20573
09/01/2020, 3:04 AMbig-airline-13935
09/01/2020, 7:51 AMmysterious-toddler-20573
09/01/2020, 1:34 PMmysterious-toddler-20573
09/01/2020, 1:34 PMmysterious-toddler-20573
09/01/2020, 1:35 PMmysterious-toddler-20573
09/01/2020, 2:13 PMmysterious-toddler-20573
09/01/2020, 2:13 PMmysterious-toddler-20573
09/01/2020, 2:14 PMmysterious-toddler-20573
09/01/2020, 2:14 PMbig-airline-13935
09/01/2020, 2:21 PMmost-jelly-15242
09/01/2020, 3:53 PMhtmx:afterRequest
event not getting triggered, even though it shows up with htmx.logAll()
. Similar to what it's mentioned here https://github.com/bigskysoftware/htmx/issues/79 I am using this to test:
js
htmx.on('htmx:afterRequest', () => console.log('htmx:afterRequest'));
Is there another way to get this working or is it still an issue?most-jelly-15242
09/01/2020, 4:00 PMjs
htmx.defineExtension('test', {
onEvent: function (name, evt) {
console.log(name);
}
}
Only these show up:most-jelly-15242
09/01/2020, 4:02 PMmost-jelly-15242
09/01/2020, 4:33 PMjs
htmx.on('htmx:beforeRequest', (event) => {
let xhr = event.detail.xhr;
const onload = xhr.onload;
xhr.onload = function (callback) {
// do something
onload.apply(this, arguments);
}
});
mysterious-toddler-20573
09/01/2020, 4:36 PMmysterious-toddler-20573
09/01/2020, 4:36 PMmost-jelly-15242
09/01/2020, 4:38 PMmost-jelly-15242
09/01/2020, 4:40 PM