Re:Jest not recommended to be used in Node.js due to instanc...
by acemarke on Friday June 30, 2023 @11:46PM
(#36546291)
There's actually a recent PR up for a `<Catch>` component:
Re:Jest not recommended to be used in Node.js due to instanc...
by awayto on Saturday July 01, 2023 @01:18AM
(#36546863)
I wonder if error boundary components/functionality are an anti-pattern. They invite the developer to create components which expect to fail. Even basic hide/show logic is better than expecting devs to orchestrate unified error handling across the app.
I strongly believe React team is shooting themselves on the foot by not making Error Boundaries into Hooks. If they did, someone could create a Preact 2.0 so to speak that is like React but purely functional (no classes). But since we don't have that, and error handling IS an important part of React, any react alternative would have to implement classes fully as well, which might retract many from even trying to create a React alternative (I don't think myself smart enough to do a React alternative properly, but I'd certainly tried if they did this).