Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.componentWillReact && this.componentWillReact()
this.forceUpdate()
})
}
let result
let exception
this._reaction.track(() => {
try {
result = originRender.call(this, null, null, args[2])
} catch (e) {
exception = e
}
})
if (exception) {
errorsReporter.emit(exception)
throw exception
}
return result
}
target._createData = function (...args) {
let result
let exception
if (this._reaction instanceof Reaction) {
this._reaction.track(() => {
try {
result = originRender.call(this, null, null, args[2])
} catch (e) {
exception = e
}
})
} else {
result = originRender.call(this, null, null, args[2])
}
if (exception) {
errorsReporter.emit(exception)
throw exception
}
return result
}