mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
React on any KubeObjectStore eventsBuffer change, not just length (#6490)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
900f02fd8c
commit
cd6df109aa
@ -432,7 +432,7 @@ export abstract class KubeObjectStore<
|
||||
protected eventsBuffer = observable.array<IKubeWatchEvent<D>>([], { deep: false });
|
||||
|
||||
protected bindWatchEventsUpdater(delay = 1000) {
|
||||
reaction(() => this.eventsBuffer.length, this.updateFromEventsBuffer, {
|
||||
reaction(() => [...this.eventsBuffer], this.updateFromEventsBuffer, {
|
||||
delay,
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user