mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
useeffect triggers react warning 'expected static flag was missing' but workarounds don't look as nice
This commit is contained in:
parent
6842ac880c
commit
053368646d
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ export default function Messages({ messages }) {
|
|||
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });
|
||||
};
|
||||
|
||||
// this useEffect triggers the following warning:
|
||||
// Warning: Internal React error: Expected static flag was missing.
|
||||
useEffect(() => {
|
||||
scrollToBottom();
|
||||
}, [messages]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue