You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Readme shows how to install it, but no examples of usage.
How do we provide a #hash to a <LinkTo /> component? Is that even possible? (hint: we should probably make that possible)
If I use an anchor tag like <a href="/some-page#hash"> it causes a full nagivation rather than transition, so that's out as well.
The only way I've been able to get hashes to work is by using a button with a click handler, as per the code below.
I should note that <a href="#some-thing-on-same-page"> works just fine. I'm specifically referring to transitioning to another page, then applying the hash
The Readme shows how to install it, but no examples of usage.
How do we provide a
#hash
to a<LinkTo />
component? Is that even possible? (hint: we should probably make that possible)If I use an anchor tag like
<a href="/some-page#hash">
it causes a full nagivation rather than transition, so that's out as well.The only way I've been able to get hashes to work is by using a button with a click handler, as per the code below.
(In theory you could also use an
<a>
tag with a click handler and event.preventDefault too.)Is there a different way? Can we get those examples added to the readme?
The text was updated successfully, but these errors were encountered: