Fix app reload and white flash caused by navbar navigation#1039
Fix app reload and white flash caused by navbar navigation#1039puneeth-92 wants to merge 1 commit intoAOSSIE-Org:mainfrom
Conversation
📝 WalkthroughWalkthroughConverts anchor elements to React Router Link components in the Navbar component to enable client-side routing. Replaces navigation anchors for the logo and settings pages, maintaining existing styling and routing destinations while eliminating full-page reloads. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This PR fixes the white flash and full app reload that occur when navigating using the Navbar.
Previously, clicking the app logo or the profile/avatar icon triggered a full page reload, which caused the app to briefly show a white screen, render the Home / empty gallery state, and re-run startup logic such as the update check.
The root cause was internal navigation using full page links instead of router-based navigation.
What was changed
Result
Fixes #1020
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.