-
Notifications
You must be signed in to change notification settings - Fork 438
Open
Description
I have the following function to scroll to the bottom of the container
const scrollChatToBottom = useCallback(() => {
animateScroll.scrollToBottom({
containerId: "event-chat-messages",
});
}, []);
And I want to execute that function on the component mount
useEffect(() => {
scrollChatToBottom();
}, [
scrollChatToBottom,
]);
But it's not working, is there a reason to that happen?
Metadata
Metadata
Assignees
Labels
No labels