-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Description
Version
"react": "16.8.3",
"react-dom": "16.8.3",
"react-redux": "5.0.7",
"react-router": "5.0.0",
"react-router-dom": "5.0.0",
Test Case
- Add any onClick handler to a Link component and make it fail
<Link to="/about" onClick={() => {throw "up";}}> Click me! </Link>
Example:
https://codesandbox.io/s/yknnw1k959
Steps to reproduce
Add an onClick handler to a Link component which throws any type of exception or error.
Expected Behavior
Not to reload the page so I would have chance to see the error in the console
Actual Behavior
The Link navigates to the desired page but also reloads the page deleting any chance of seeing that an error even happened.
Metadata
Metadata
Assignees
Labels
No labels