fix(renderer-core): remove compatibility with uipaas

This commit is contained in:
1ncounter 2023-11-23 19:35:37 +08:00 committed by JackLian
parent ada3fc1508
commit 8c951bbbde

View File

@ -50,11 +50,6 @@ export function executeLifeCycleMethod(context: any, schema: IPublicTypeNodeSche
return;
}
// avoid execute lifeCycle method from __proto__'s method (it is React class Component Class lifeCycle)
if (!Object.prototype.hasOwnProperty.call(context, method) && method !== 'constructor') {
return;
}
// TODO: cache
if (isJSExpression(fn) || isJSFunction(fn)) {
fn = thisRequiredInJSE ? parseThisRequiredExpression(fn, context) : parseExpression(fn, context);