| ▲ | recursivedoubts 3 days ago | ||||||||||||||||
in 4.0 the request cycle is totally open: you can replace the fetch() implementation on a per-request basis learned that trick from fixi.js | |||||||||||||||||
| ▲ | logankeenan 3 days ago | parent [-] | ||||||||||||||||
Yep, it's super nice. The Service Workers API also makes this really easy too. I experimented with compiling a Rust Axum server to WASM and then ran it in my service worker. Also, thanks for incorporating fetch into htmx! I thought I'd include an example of replacing fetch for anyone that come across this.
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWork... | |||||||||||||||||
| |||||||||||||||||