Skip to content

Commit

Permalink
fix(renderer-core): remove compatibility with uipaas
Browse files Browse the repository at this point in the history
  • Loading branch information
1ncounter authored and liujuping committed Nov 23, 2023
1 parent 6c7a526 commit c643c0f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/renderer-core/src/renderer/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c643c0f

Please sign in to comment.