Some break middle clicking but I can still right click and select "open in new tab" from the menu. But there's others that don't even allow that. It's awful.
This has some obvious advantages for some use cases: preserving local state, fast refresh, less duplicate data fetching from the server, etc
Downside is those are not links and opening in a new tab doesn’t work by default. It’s fixable in most cases, but additional work.
Luckily modern frameworks like Next.js make it easy to build apps and pages that have best of both worlds.
The entire thing makes me feel dirty. The data collected is never even looked at. And yes, it breaks middle-click and right-click behaviour.
Anyone hiring Rails devs anymore? ;)
I actually did this mistake when starting with React, now I try to make everything as close to a native link as possible.
IIRC, that’s a very old (long since fixed, but not everyone updates) bug in React Router’s Link component.