mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Using structuralComparator in feature installer
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
parent
6c7f4d7f0c
commit
5a014439a0
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { observable, reaction } from "mobx";
|
import { observable, reaction, comparer } from "mobx";
|
||||||
import { observer, disposeOnUnmount } from "mobx-react";
|
import { observer, disposeOnUnmount } from "mobx-react";
|
||||||
import { clusterIpc } from "../../../../common/cluster-ipc";
|
import { clusterIpc } from "../../../../common/cluster-ipc";
|
||||||
import { Cluster } from "../../../../main/cluster";
|
import { Cluster } from "../../../../main/cluster";
|
||||||
@ -20,7 +20,7 @@ export class InstallFeature extends React.Component<Props> {
|
|||||||
disposeOnUnmount(this,
|
disposeOnUnmount(this,
|
||||||
reaction(() => this.props.cluster.features[this.props.feature], () => {
|
reaction(() => this.props.cluster.features[this.props.feature], () => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
})
|
}, { equals: comparer.structural })
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user