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:
parent
aeb0127a8f
commit
c4f41db275
@ -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]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user