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:
parent
8d2d1aecd5
commit
8823b1913f
@ -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());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user