active-group / reacl

ClojureScript library for interfacing with React framework
78 stars 1 forks source link

Add error boundaries - the componentDidCatch method #12

Closed dfrese closed 5 years ago

dfrese commented 5 years ago

React introduced the 'error boundary', via a class method "componentDidCatch". This is very handy and there should be a Reacl feature to support something similar/the same; via that method, or something else.

dfrese commented 5 years ago

React 17 has already deprecated the api and split it into two, componentDidCatch and getDerivedStateFromError :-/

https://reactjs.org/docs/react-component.html#componentdidcatch