3 ms·
> Do not use async effects. Use suspense. I have to wonder how much pain would have been saved if the React team had just shipped a `usePromise` hook years ago
by crooked-v 4y ago
> Do not use async effects. Use suspense.
I have to wonder how much pain would have been saved if the React team had just shipped a `usePromise` hook years ago.
- HeavyFeather 4y agoThe first thing I noticed looking at React after Svelte was that Svelte had syntax for promises from v1 while dealing with Promises in "the most popular framework on the plane" is still a PITA. "await blocks" on http://web.archive.org/web/20180103230006/http://svelte.technology/ http://web.archive.org/web/20180103230006/http://svelte.tech...