Skip to content

Commit 7189f59

Browse files
authored
Merge pull request #34 from trbKnl/fix-terminate-vis-engine
added code to terminate() so it calls unmount on ReactDom.Root
2 parents aef72ec + 6e9cca4 commit 7189f59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/framework/visualisation/react/engine.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ export default class ReactEngine implements VisualisationEngine {
4040
})
4141
}
4242

43-
terminate (): void {}
43+
terminate (): void {
44+
console.log('[ReactEngine] stopped')
45+
this.root.unmount()
46+
}
4447

4548
renderElements (elements: JSX.Element[]): void {
4649
this.root.render(<Main elements={elements} />)

0 commit comments

Comments
 (0)