Skip to content

Commit 9b11166

Browse files
testerezmtsknn
andauthored
Update Router.js
Co-authored-by: Matias Kinnunen <[email protected]>
1 parent 6cc9e28 commit 9b11166

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Router.js

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ export function Link ({ className, href, children }) {
9898
return;
9999
}
100100

101+
// prevent full page reload
102+
event.preventDefault();
103+
101104
navigate(href);
102105
};
103106

0 commit comments

Comments
 (0)