`throw undefined` and `throw <literally anything other than an error instance>` are the bane of my existence
-
-
Yes please! Interestingly
@reactjs is trying to lower the barrier to entry for juniors and is advocating for throwing promises. I wonder how many new developers will think it’s OK to use exceptions as control flow and throw any value rather than an error because of Suspense? -
> and is advocating for throwing promises. Not really. The fact that suspense works by throwing promises is an implementation detail. It was never the idea to expose that in the public API (and it doesn't, if you use React.lazy or the API they end up creating for data fetching)
- 3 more replies
New conversation -
-
-
also wish I could throw new RouterRedirect(url) and not require intermediate error boundaries to rethrow :(
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 