3 ms·
oooh nice. We are truly going to a fucntional world! The (pesky) "http fetch" is now just a detail it sounds like?
by flashgordon 11mo ago
oooh nice. We are truly going to a fucntional world! The (pesky) "http fetch" is now just a detail it sounds like?
- recursivedoubts 11mo agoYes, you can see the code here: https://github.com/bigskysoftware/htmx/blob/24e6d5d7c15e34c924c006420c6e2d84172fdcc7/src/htmx.js#L499 https://github.com/bigskysoftware/htmx/blob/24e6d5d7c15e34c9... We bind `fetch` in the `ctx` object to the standard `windw.fetch` but you can replace it with whatever you want (for example in the `htmx:before:request` event triggered immediately afterwards) Pretty much everything is swappable using this technique.