fix rendering view

pull/4355/head
yann300 11 months ago
parent e22f3387f1
commit 472bab80e4
  1. 10
      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<any>): void {
this.dispatch = dispatch
}
render() {
return (
<div id="compileDetails">

Loading…
Cancel
Save