mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make injecting legacy singleton always provide new instance
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
4 files changed
+28
-4
No files matched your search
@@ -7,7 +7,13 @@ import { WindowManager } from "./window-manager";
|
||||
|
||||
const windowManagerInjectable = getInjectable({
|
||||
id: "window-manager",
|
||||
instantiate: () => WindowManager.createInstance(),
|
||||
|
||||
instantiate: () => {
|
||||
WindowManager.resetInstance();
|
||||
|
||||
return WindowManager.createInstance();
|
||||
},
|
||||
|
||||
causesSideEffects: true,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user