Ma77Ball commented on code in PR #3602: URL: https://github.com/apache/texera/pull/3602#discussion_r2353740808
########## core/gui/src/app/workspace/component/workflow-editor/workflow-editor.component.ts: ########## @@ -114,6 +116,12 @@ export class WorkflowEditorComponent implements AfterViewInit, OnDestroy { this.wrapper = this.workflowActionService.getJointGraphWrapper(); } + ngOnInit(): void { + // Create the button instances 1 time during initialization. + this.removeButton = new (this.jointUIService.getRemoveButton())(); + this.breakpointButton = new (this.jointUIService.getBreakpointButton())(); Review Comment: This is to cache the button as Copilot suggested -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@texera.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org