diff --git a/apps/remix-ide/src/app/plugins/compile-details.tsx b/apps/remix-ide/src/app/plugins/compile-details.tsx index 1a19c22cbc..95e39803c3 100644 --- a/apps/remix-ide/src/app/plugins/compile-details.tsx +++ b/apps/remix-ide/src/app/plugins/compile-details.tsx @@ -35,8 +35,6 @@ export class CompilationDetailsPlugin extends ViewPlugin { } async onActivation() { - await this.call('tabs', 'focus', 'compilationDetails') - this.renderComponent() _paq.push(['trackEvent', 'plugin', 'activated', 'compilationDetails']) } @@ -46,13 +44,17 @@ export class CompilationDetailsPlugin extends ViewPlugin { async showDetails(sentPayload: any) { await this.call('tabs', 'focus', 'compilationDetails') - this.payload = sentPayload - this.renderComponent() + setTimeout(() => { + // TODO: use the react API to render when the tab is focused and tbe plugin in the view. + this.payload = sentPayload + this.renderComponent() + }, 2000) } setDispatch(dispatch: React.Dispatch): void { this.dispatch = dispatch } + render() { return (