Created by: abhishekakade
Description of PR
- Added a check and cleanup function in
useEffect
to avoid setting state in unmounted components. - Will fix memory leak caused due to setting state in unmounted components.
- Removed
Navbar
fromSuspense
inApp.js
to prevent redundantNavbar
re-renders on each route.
Relevant Issues
Closes #1763 (closed)
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone