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:
1 parent
900f02fd8c
commit
cd6df109aa
1 file changed
+1
-1
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user