0๐
useEffect(() => {
getProjects();
getCurrentProfile();
chart();
barChart();
}, [getCurrentProfile]);
Note the above useEffect does not get called when page is loaded. May want to change to
useEffect(() => {
getProjects();
getCurrentProfile();
chart();
barChart();
}, []);
Source:stackexchange.com