As per the new react 16 release doc it says
"React 16 prints all errors that occurred during rendering to the console in development, even if the application accidentally swallows them."
I have a Parent component and a Child component. I have triggered an error in then block of promise. But it will call catch method of the promise, componentDidCatch of parent is not getting called. I am not sure whether this the expected behaviour.
Here is the jsfiddle https://jsfiddle.net/john1jan/Luktwrdm/14/
As per the new react 16 release doc it says
"React 16 prints all errors that occurred during rendering to the console in development, even if the application accidentally swallows them."
I have a Parent component and a Child component. I have triggered an error in then block of promise. But it will call catch method of the promise, componentDidCatch of parent is not getting called. I am not sure whether this the expected behaviour.
Here is the jsfiddle https://jsfiddle.net/john1jan/Luktwrdm/14/