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

Reset stores before loading them (#1897)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-01-07 07:25:00 +02:00 committed by GitHub
parent 8d2d1aecd5
commit 8823b1913f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
if (!isClusterScoped) stores.push(namespaceStore); if (!isClusterScoped) stores.push(namespaceStore);
try { try {
stores.map(store => store.reset());
await Promise.all(stores.map(store => store.loadAll())); await Promise.all(stores.map(store => store.loadAll()));
const subscriptions = stores.map(store => store.subscribe()); const subscriptions = stores.map(store => store.subscribe());