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:
Sebastian Malton committed 2020-11-25 11:14:13 -05:00
1 parent ab24325e69
commit 2b08d61070
4 files changed
+87

No files matched your search

+3
View File
@@ -21,6 +21,9 @@ export abstract class ClusterFeature {
latestVersion: string;
config: any;
/**
* @observable
*/
@observable status: ClusterFeatureStatus = {
currentVersion: null,
installed: false,
+3
View File
@@ -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);