-
Notifications
You must be signed in to change notification settings - Fork 996
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]: Generated named routes do not filter out undefined values from query params #11598
Comments
Hey @antonmoiseev! Just confirmed this. I agree it's not exactly what one would expect. To navigate with the real Do you want to implement a fix for this one too? No pressure of course we can add it to our internal list if you don't have the time. Your contributions are awesome and always appreciated! |
I'd be happy to! Spending more time on a Redwood project now, glad to contribute back to the extent of my capacity. |
Perfect if you need anything just let me know! |
@Josh-Walker-GM linking the PR here - #11635 |
Awesome! Feel free to request a review or otherwise ping me once you're happy with it and I can review and get it in. |
It's ready, please review whenever you have a chance |
What's not working?
Functions generated for named routes, do not filter out query string params with
undefined
values. They do so for path params , but not for query.How do we reproduce the bug?
Assuming you have a Redwood app with "home" route. Pass any args to the generated
routes.home()
function that have undefined value:What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: