CommunityOfCoders / COCWebsite

The official website of Community Of Coders, VJTI.

Home Page:https://www.communityofcoders.in

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetching effect in Projects triggers continuously

akshatshah21 opened this issue · comments

useEffect(() => {
axios.get(process.env.REACT_APP_API + "/domains").then((res) => {
const domainList = res.data;
setDomains(domainList);
});
});

This effect runs infinitely, since it sets the domains state.