next-router-prefetch is a custom hook that wraps useRouter.Apply prefetch to links that do not use the Link component.
MIT License