From 6e9cca4489c2c6b087871a4372657ae61b60d472 Mon Sep 17 00:00:00 2001 From: trbKnl Date: Thu, 30 Mar 2023 20:12:03 +0200 Subject: [PATCH] added code to terminate() so it calls unmount on ReactDom.Root --- src/framework/visualisation/react/engine.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/framework/visualisation/react/engine.tsx b/src/framework/visualisation/react/engine.tsx index 6bf6b146..bd569c1d 100644 --- a/src/framework/visualisation/react/engine.tsx +++ b/src/framework/visualisation/react/engine.tsx @@ -40,7 +40,10 @@ export default class ReactEngine implements VisualisationEngine { }) } - terminate (): void {} + terminate (): void { + console.log('[ReactEngine] stopped') + this.root.unmount() + } renderElements (elements: JSX.Element[]): void { this.root.render(
)