Chartjs-Chart.js data not initially loaded

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();
  }, []);

Leave a comment