LabConnect-RCOS / LabConnect-Frontend

Apache License 2.0
1 stars 2 forks source link

Fix Maximum update depth exceeded on navbar component #43

Open RafaelCenzano opened 1 week ago

RafaelCenzano commented 1 week ago

Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render. at MainNavigation (http://localhost:3000/static/js/bundle.js:2742:81) at section at GlobalContextProvider (http://localhost:3000/static/js/bundle.js:602:3) at App (http://localhost:3000/static/js/bundle.js:61:51) at Router (http://localhost:3000/static/js/bundle.js:293180:15) at BrowserRouter (http://localhost:3000/static/js/bundle.js:291160:5)