-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
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
next/link silently ignores params in case of typo #1275
Comments
Actually, it's good dev only feature. We expose few APIs like this, so we might need to have them for those as well. Anyway, I'd like to see this as a linter something externally. Anyway, this is something I'd love to see. |
Flow would catch this. I noticed the prefetch tag is missing though. |
Some ideas over here facebook/react#1587 |
Seems like the best option is https://github.com/airbnb/prop-types |
Seems like ljharb released it as separate package: https://github.com/airbnb/prop-types-exact pretty cool 👌 I'll experiment with it. |
If I use
<Link href='/' prefetc>
(notice the typo), there's no error message. Possibly similar comment for other params and other Next.js APIs.The text was updated successfully, but these errors were encountered: