fix(32-01): remove fetchFriends from deps to fix TDZ error
Original code had empty deps []. Function defined below, runs once on mount. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c4ec621a08
commit
9a49d3a423
|
|
@ -851,7 +851,8 @@ const JKSessionScreen = () => {
|
|||
|
||||
useEffect(() => {
|
||||
fetchFriends();
|
||||
}, [fetchFriends]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []); // fetchFriends defined below, runs once on mount
|
||||
|
||||
const fetchFriends = () => {
|
||||
if (currentUser) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue