erros de log reagem
componentDidCatch(error, info) {
this.reactError = error
console.log(info)
this.setState({ catchError: true })
}
sendError() {
fetch('/errorlog', {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
method: "POST",
body: JSON.stringify({ message: this.props.type + ' - ' + this.props.error.message, stack: this.props.error.stack })
})
}
Light Ladybird