mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
add a brief overview to our use of mobx and mark all observable fields as observable in our docs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
ab24325e69
commit
2b08d61070
4 files changed
+87
No files matched your search
@@ -21,6 +21,9 @@ export abstract class ClusterFeature {
|
||||
latestVersion: string;
|
||||
config: any;
|
||||
|
||||
/**
|
||||
* @observable
|
||||
*/
|
||||
@observable status: ClusterFeatureStatus = {
|
||||
currentVersion: null,
|
||||
installed: false,
|
||||
|
||||
@@ -26,6 +26,9 @@ export class ExtensionLoader {
|
||||
protected instances = observable.map<LensExtensionId, LensExtension>();
|
||||
protected readonly requestExtensionsChannel = "extensions:loaded";
|
||||
|
||||
/**
|
||||
* @observable
|
||||
*/
|
||||
@observable isLoaded = false;
|
||||
whenLoaded = when(() => this.isLoaded);
|
||||
|
||||
|
||||
Reference in new issue
Block a user