mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix endless re-rending of logs
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
23 files changed
+354
-161
No files matched your search
@@ -58,8 +58,9 @@ export class DockTabStore<T> {
|
||||
// auto-save to local-storage
|
||||
if (storageKey) {
|
||||
this.storage = this.dependencies.createStorage<T>(storageKey, {});
|
||||
|
||||
this.storage.whenReady.then(() => {
|
||||
this.data.replace(this.storage.get());
|
||||
this.data.replace(this.storage.value);
|
||||
reaction(() => this.toJSON(), data => this.storage.set(data));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user