-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Bug]: Type of loader should not allow to return undefined #10239
Comments
We can use |
Closed in #10267. This will be available when React Router 6.11 is released. |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.8.2
Steps to Reproduce
Write a function that return
undefined
or nothing in a loader of a route.Expected Behavior
Type Script error.
This type
should be rewritten
Actual Behavior
No TS error, and so there will be an error at runtime.
The text was updated successfully, but these errors were encountered: