1
0
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:
alexfront 2020-08-07 15:47:42 +03:00
parent 6c7f4d7f0c
commit 5a014439a0

View File

@ -1,5 +1,5 @@
import React from "react";
import { observable, reaction } from "mobx";
import { observable, reaction, comparer } from "mobx";
import { observer, disposeOnUnmount } from "mobx-react";
import { clusterIpc } from "../../../../common/cluster-ipc";
import { Cluster } from "../../../../main/cluster";
@ -20,7 +20,7 @@ export class InstallFeature extends React.Component<Props> {
disposeOnUnmount(this,
reaction(() => this.props.cluster.features[this.props.feature], () => {
this.loading = false;
})
}, { equals: comparer.structural })
);
}