Skip to content

Commit

Permalink
early escape?
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 18, 2023
1 parent abe8625 commit 4a57775
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/houdini-react/src/runtime/routing/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ function useLinkNavigation({ goto }: { goto: (url: string) => void }) {
!e.defaultPrevented
)
) {
// its a link we want to handle so don't navigate like normal
e.preventDefault()
e.stopPropagation()
console.log('link', link)
return
}

Expand Down

0 comments on commit 4a57775

Please sign in to comment.