mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-08 03:28:51 +01:00
🌡️ feat: Periodic Health Check to prevent UI Inactivity Connection Errors (#3589)
* 🌡️ feat: Periodic Health Check to prevent UI Inactivity Connection Errors
* feat: Add refetchOnWindowFocus option for health check
* feat: programmatically scroll to end when a chat request is initiated (and messages have rendered)
This commit is contained in:
parent
cf393b1308
commit
6ea2628b56
12 changed files with 81 additions and 14 deletions
|
|
@ -43,3 +43,12 @@ export const getTextKey = (message?: TMessage | null, convoId?: string | null) =
|
|||
Constants.COMMON_DIVIDER
|
||||
}${message.conversationId ?? convoId}`;
|
||||
};
|
||||
|
||||
export const scrollToEnd = () => {
|
||||
setTimeout(() => {
|
||||
const messagesEndElement = document.getElementById('messages-end');
|
||||
if (messagesEndElement) {
|
||||
messagesEndElement.scrollIntoView({ behavior: 'instant' });
|
||||
}
|
||||
}, 500);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue