Skip to content

Instantly share code, notes, and snippets.

@aethr
aethr / abortOnUnmount.js
Created March 28, 2022 23:35
Vue `abortOnUnmount` behaviour
const abortOnUnmount = () => {
const toAbort = new Map();
const createAbortable = async (asyncCallback) => {
const key = Symbol();
const request = asyncCallback();
toAbort.set(key, request.controller);
try {
return request;
@aethr
aethr / keybase.md
Created October 9, 2016 09:56
Keybase proof

Keybase proof

I hereby claim:

  • I am aethr on github.
  • I am aethr (https://keybase.io/aethr) on keybase.
  • I have a public key ASBYHIrpkuRlsVo4fZEiPZBary6C6WKPBQjqwuoLxs6gywo

To claim this, I am signing this object: