Open Ezekiah opened 7 years ago
You can use https://sentry.io/
@bertho-zero The question is where to put their code.
I did something like this in create.js
but I don't know if it's ideal.
if (__CLIENT__) {
window.onunhandledrejection = (event) => {
console.log('event', event)
Raven.captureException(event.reason.message)
}
}
I would like to know where I should write window.onerror, to catch all error, I tried to put it in the componentDidMount of helpers/Html.js but it doesn't work. Thanks in advance.