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

Increase timeout delay to wait virtualizer

Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
alexfront 2022-09-09 11:06:41 +03:00
parent aeb0127a8f
commit c4f41db275

View File

@ -7,8 +7,9 @@ import type { LogTabViewModel } from "./logs-view-model";
export function useInitialScrollToBottom(model: LogTabViewModel, callback: () => void) {
useEffect(() => {
// TODO: Consider more precise way to check when list ready to scroll
setTimeout(() => {
callback();
}, 300); // Giving some time virtual library to render its rows
}, 800); // Giving some time virtual library to render its rows
}, [model.logTabData.get()?.selectedPodId]);
}