Skip to content

Conversation

@marcodejongh
Copy link
Owner

The back button was slow/unresponsive because AntD Button wrapped in
Next.js Link component doesn't properly propagate click events. Fixed
by using onClick handler consistently for all cases, which calls either
window.history.back() or router.push() depending on navigation history.

The back button was slow/unresponsive because AntD Button wrapped in
Next.js Link component doesn't properly propagate click events. Fixed
by using onClick handler consistently for all cases, which calls either
window.history.back() or router.push() depending on navigation history.
- Create reusable BackButton component that handles:
  - Smart navigation (history.back() if same-origin, fallback URL otherwise)
  - Prefetching for fallback URLs
  - Icon-only display (no text) for consistent UI
- Update climb-view-actions, settings, and auth pages to use BackButton
- Remove unused BackToClimbList component (dead code)
@vercel
Copy link

vercel bot commented Dec 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
boardsesh Ready Ready Preview, Comment Dec 26, 2025 9:00am

@marcodejongh marcodejongh merged commit 5aed644 into main Dec 26, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants