-
Hi again, i searched the repo and the demo but didn't find anything which could be used to unregister or stop the services running i initialize at the beginning of my application.
In my application if i navigate to the script section once then everything runs fine and i can start coding in the editor. When i navigate to another section of my application i get disposed of all modelRef, the editor instance and the fileSystemOverlay. As soon as i navigate to the script section again the application crashes and i get an error like 'Services are already initialized'. That means getting rid of the editor and the container the editor is attached being destroyed is not enough. How can i ensure everything is cleaned up when after using the editor (i mean when i navigate away from the editor). Thank you very much for your answer. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Unfortunately, that's not something that is possible for multiples reasons:
So I see 2 solutions:
|
Beta Was this translation helpful? Give feedback.
Unfortunately, that's not something that is possible for multiples reasons:
So I see 2 solutions: