Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/next/client/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export type LinkProps = {
scroll?: boolean
shallow?: boolean
passHref?: boolean
onError?: (error: Error) => void
prefetch?: boolean
}

Expand Down Expand Up @@ -180,9 +179,6 @@ class Link extends Component<LinkProps> {
document.body.focus()
}
})
.catch((err: any) => {
if (this.props.onError) this.props.onError(err)
})
}

prefetch() {
Expand Down
1 change: 0 additions & 1 deletion test/integration/typescript/components/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default () => {
const props: LinkProps = {
href: '/page',
as: '/as-page',
onError() {},
}

return (
Expand Down