Skip to content

Commit fd2bd57

Browse files
authored
Merge pull request #1255 from andypols/fix-stop-loading-users-infinite-loop
fix: infinite loop in UserList component
2 parents f216ae6 + 16945f9 commit fd2bd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/views/UserList/Components/UserList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const UserList: React.FC = () => {
3737

3838
useEffect(() => {
3939
getUsers(setIsLoading, setData, setAuth, setErrorMessage);
40-
});
40+
}, []);
4141

4242
if (isLoading) return <div>Loading...</div>;
4343
if (errorMessage) return <Danger>{errorMessage}</Danger>;

0 commit comments

Comments
 (0)