We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useRouter
Many components are utilizing useRouter, but its usage in the app router differs significantly from the page router. This mismatch results in runtime errors. See https://nextjs.org/docs/14/app/building-your-application/upgrading/app-router-migration#step-5-migrating-routing-hooks
Components using useRouter should be updated for compatibility with the app router.
All components using useRouter function without errors in the app router.
Refer to the Next.js documentation for app router migration: https://nextjs.org/docs/14/app/building-your-application/upgrading/app-router-migration#step-5-migrating-routing-hooks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 Describe the Bug
Many components are utilizing
useRouter
, but its usage in the app router differs significantly from the page router. This mismatch results in runtime errors.See https://nextjs.org/docs/14/app/building-your-application/upgrading/app-router-migration#step-5-migrating-routing-hooks
🧑💻 Reproduction Steps
useRouter
that was implemented for the page router.useRouter
usage.🎯 Expected Behaviour
Components using
useRouter
should be updated for compatibility with the app router.💼 Tasks
useRouter
.useRouter
where needed to meet app router requirements.✅ Acceptance Criteria
All components using
useRouter
function without errors in the app router.➕ More Information
Refer to the Next.js documentation for app router migration:
https://nextjs.org/docs/14/app/building-your-application/upgrading/app-router-migration#step-5-migrating-routing-hooks
The text was updated successfully, but these errors were encountered: