question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Work with react-router's <Link> ?

See original GitHub issue

<Link> will be broken (like <a> reload page) after glidify.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
apuntovaninicommented, Jun 22, 2018

@RoberMac is right, I also tried an it works that way. Should we submit a PR @jedrzejchalubek?

1reaction
robertu7commented, May 23, 2018

Simply put, <Link> component actually is a <a> with attached event (like onclick), but Anchors module seems stopPropagation, so <Link>'s event handler may not be fired. I remove the line of stopPropagation then it works too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Link v6.6.1 - React Router
A <Link> is an element that lets the user navigate to another page by clicking or tapping on it. In react-router-dom , a...
Read more >
How to handle navigation in your app with React Router Link
React Router is used for handling navigation state and keeping the UI in sync with the URL. It watches for changes in the...
Read more >
React Router Tutorial – How to Render, Redirect, Switch, Link ...
To add the link in the menu, use the <NavLink /> component by react-router-dom . The NavLink component provides a declarative way to...
Read more >
<Link> · React Router
The primary way to allow users to navigate around your application. <Link> will render a fully accessible anchor tag with the proper href....
Read more >
Creating a Link Between Pages in React Router
Even though we're linking to /react, that gets silently rewritten by React Router to be /#/react, which means our current URLs all carry...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found