Please adding a support for Next.js's soft navigation using <Link>
component
#2364
Labels
Needs investigation
Investigation is planned but not started yet
Describe the problem
Hello, thank you for providing a fantastic search tool for the open-source community.
I recently implemented a search feature on my blog using Next.js. However, I noticed that DocSearch only performs hard navigation. This results in unnecessary full-page refreshes when navigating to other pages within my blog using Next.js, which negatively impacts the user experience.
I would like to request support for Next.js's soft navigation by utilizing the
<Link>
component.Describe the solution
The current
Hit.jsx
file looks like below. Adding an option to use the<Link>
component would be a good solution. (The following code is just pseudocode and may not be accurate.)Alternatives you've considered
This is the best approach I can think of. If anyone has other ideas, please feel free to suggest them.
Thank you!
The text was updated successfully, but these errors were encountered: