rem’s avatarrem’s Twitter Archive—№ 78,094

    1. What do you expect to see in the console? useEffect(() => { const test = async = () => { someFunctionThatThrows(); console.log("sid"); }; try { test(); } catch (e) { console.log("sam"); } }, []);
  1. …in reply to @rem
    I ended up adding this as a TIL (since I've not done these in almost 12 months!): remysharp.com/til/javascript/use-effect-async-swallows