1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

added explicit preload: true when subscribing stores

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-01-26 16:07:25 +02:00
parent 5bc3eab366
commit 99afe46a5e
3 changed files with 5 additions and 3 deletions

View File

@ -33,7 +33,7 @@ export class NamespaceSelect extends React.Component<Props> {
componentDidMount() {
disposeOnUnmount(this, [
kubeWatchApi.subscribeStores([namespaceStore], {
preload: !namespaceStore.isLoaded,
preload: true,
})
]);
}

View File

@ -22,7 +22,7 @@ export class ServiceDetails extends React.Component<Props> {
componentDidMount() {
disposeOnUnmount(this, [
kubeWatchApi.subscribeStores([endpointStore], {
preload: !endpointStore.isLoaded,
preload: true,
}),
]);
}

View File

@ -27,7 +27,9 @@ export class WorkloadsOverview extends React.Component<Props> {
kubeWatchApi.subscribeStores([
podsStore, deploymentStore, daemonSetStore, statefulSetStore, replicaSetStore,
jobStore, cronJobStore, eventStore,
]),
], {
preload: true,
}),
]);
}