Hook equivalent to componentDidCatch
coding-with-binaries opened this issue · 1 comments
coding-with-binaries commented
Is there any way I can use a hook equivalent to componentDidCatch so that to handle some specific use case in a functional component I don't have to create an error boundary component every time and bloat my tree.
Plus it will also be an elegant way to handle errors in functional components