Replies: 2 comments 3 replies
-
I am curious about the future of |
Beta Was this translation helpful? Give feedback.
-
These props are not required to use Link, they have been deprecated, and I could not see examples that they will be required. They were kept to ensure backward compatibility as it was a breaking change, Link had an entirely different usage before, and the new usage supports all functionality that the previous one provides. Next.js Link is now a component that renders HTML |
Beta Was this translation helpful? Give feedback.
-
Goals
Next.js 15 as a major release, it's a good time to remove the legacy behavior from Next.js Link component.
It was added in Next.js 13, after two major releases, I think it makes sense to remove it.
This can:
Non-Goals
Add new features
Background
When playing with Next.js 15 canary, I found some props like
as
are no longer documented while they are kept in the implementation.I was surprised by the complexity of the implementation of the Next.js Link component, some legacy functionalities should be removed.
Proposal
legacyBehavior
propas
proppassHref
propI'm willing to provide a PR
Beta Was this translation helpful? Give feedback.
All reactions