17 min read Vue.jsComposition API +2 more tags: Reactivity, Async
Cancelling API Requests in Vue 3: One Registry, Two Paths, and the Question That Orders Them
Vue 3 exposes four things that look like four ways to cancel a stale request — the watch/watchEffect onCleanup parameter, the 3.5 onWatcherCleanup import, and AbortController. They're really two registration paths over one registry, and one of them silently no-ops after await. Here's the source-level reason, and which to reach for.
Read article