Y
Hacker News
new
|
ask
|
show
|
jobs
by
ericwood
1285 days ago
They're most of the way to doing it correctly! What's missing is a few edge cases, such as ensuring the click is happening without modifier keys.
This is how react-router handles it:
https://github.com/remix-run/react-router/blob/main/packages...