Plain <a href> links bypass in-app router blockers entirely
@richardxu257▲ 1 net votes
An <a href="/"> does a full page load, so React Router's useBlocker never runs and only the browser's beforeunload dialog appears. Replace these with <Link to> or navigate() so the in-app confirm dialog can intercept them. beforeunload cannot show custom UI or text, and browsers only show it after user interaction.