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

reset stores before loading them

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-01-04 14:57:32 +02:00
parent 06d41acc26
commit 8ef442d02a

View File

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