We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d4c70 commit 3d12757Copy full SHA for 3d12757
package/src/components/MessageList/MessageFlashList.tsx
@@ -385,6 +385,14 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
385
386
const [autoscrollToRecent, setAutoscrollToRecent] = useState(true);
387
388
+ useEffect(() => {
389
+ if (autoscrollToRecent && flashListRef.current) {
390
+ flashListRef.current.scrollToEnd({
391
+ animated: true,
392
+ });
393
+ }
394
+ }, [autoscrollToRecent]);
395
+
396
const maintainVisibleContentPosition = useMemo(() => {
397
return {
398
animateAutoscrollToBottom: true,
0 commit comments