1
0
Fork 0
forked from Mirrors/gomuks

web/timeline: add missing dependency to effect

This commit is contained in:
Tulir Asokan 2024-12-30 23:29:42 +02:00
parent f9b5fcc863
commit 7afcc37326

View file

@ -71,7 +71,7 @@ const TimelineView = () => {
}, [client.userID, roomCtx, timeline])
useEffect(() => {
roomCtx.directSetFocusedEventRowID = directSetFocusedEventRowID
}, [])
}, [roomCtx])
useEffect(() => {
const newestEvent = timeline[timeline.length - 1]
if (