fix(lint): adjust RoomTimeline callback dependencies for exhaustive-deps
This commit is contained in:
1 parent
79e4e09436
commit
188f588ce7
1 file changed
+2
-2
@@ -799,7 +799,7 @@ export function RoomTimeline({
|
||||
},
|
||||
});
|
||||
},
|
||||
[alive, setAtBottom]
|
||||
[alive, setAtBottom, room.roomId]
|
||||
),
|
||||
useCallback(() => {
|
||||
if (!alive()) return;
|
||||
@@ -807,7 +807,7 @@ export function RoomTimeline({
|
||||
setTimeline(getInitialTimeline(room));
|
||||
scrollToBottomRef.current.count += 1;
|
||||
scrollToBottomRef.current.smooth = false;
|
||||
}, [alive, room, room.roomId])
|
||||
}, [alive, room])
|
||||
);
|
||||
|
||||
useLiveEventArrive(
|
||||
|
||||
Reference in new issue
Block a user