Skip to content

Commit

Permalink
Fix infinite API calls in UserLists by removing isLoading from useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
DustyReagan committed Jan 10, 2025
1 parent aa8f117 commit 9067fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/reader/user-stream/views/lists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UserLists = ( {

useEffect( () => {
requestUserLists( userId, userSlug );
}, [ userId, userSlug, isLoading, requestUserLists ] );
}, [ userId, userSlug, requestUserLists ] );

if ( isLoading ) {
return <></>;
Expand Down

0 comments on commit 9067fde

Please sign in to comment.