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

Increase events buffer delay up to 4s

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-03-24 15:25:24 +03:00
parent 25293de92f
commit d27ea4bbd0

View File

@ -376,7 +376,7 @@ export abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T>
// collect items from watch-api events to avoid UI blowing up with huge streams of data
protected eventsBuffer = observable.array<IKubeWatchEvent<KubeJsonApiData>>([], { deep: false });
protected bindWatchEventsUpdater(delay = 1000) {
protected bindWatchEventsUpdater(delay = 4000) {
reaction(() => this.eventsBuffer.length, this.updateFromEventsBuffer, {
delay,
});