mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
chore: unplug meilisearch, add leading option to throttle
This commit is contained in:
parent
4cd0ff2682
commit
b0936fa322
4 changed files with 14 additions and 14 deletions
|
|
@ -39,7 +39,7 @@ export default function Messages({ messages, messageTree }) {
|
|||
console.log('scrollToBottom');
|
||||
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });
|
||||
setShowScrollButton(false);
|
||||
}, 750), [messagesEndRef]);
|
||||
}, 750, { leading: true }), [messagesEndRef]);
|
||||
|
||||
const handleScroll = () => {
|
||||
const { scrollTop, scrollHeight, clientHeight } = scrollableRef.current;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue