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
The Request constructor doesn't respect the deprecated RequestOptionsArgs.search property #15761
Comments
Thanks for the quick reply. OK, but how could anyone know that the
Today I updated to v4 and my app just broke.
You mean "was never designed to work with RequestOptionsArgs" or that it was redesigned in the v4 phase? Because I believe the signature/documentation has always been like it is now. |
Right now you have 2 options:
|
Currently option 1 (passing
|
Currently `new Request({search: ...})` is not honored, and `new Request({params: {'x': 'y'}) doesn't work either, as this object would have toString() called. This change allows both of these cases to work, as proved by the 2 new tests. Fixes angular#15761
Currently `new Request({search: ...})` is not honored, and `new Request({params: {'x': 'y'}) doesn't work either, as this object would have toString() called. This change allows both of these cases to work, as proved by the 2 new tests. Fixes angular#15761
Currently `new Request({search: ...})` is not honored, and `new Request({params: {'x': 'y'}) doesn't work either, as this object would have toString() called. This change allows both of these cases to work, as proved by the 2 new tests. Fixes angular#15761
Currently `new Request({search: ...})` is not honored, and `new Request({params: {'x': 'y'}) doesn't work either, as this object would have toString() called. This change allows both of these cases to work, as proved by the 2 new tests. Fixes angular#15761
Currently `new Request({search: ...})` is not honored, and `new Request({params: {'x': 'y'}) doesn't work either, as this object would have toString() called. This change allows both of these cases to work, as proved by the 2 new tests. Fixes angular#15761 PR Close angular#16392
Currently `new Request({search: ...})` is not honored, and `new Request({params: {'x': 'y'}) doesn't work either, as this object would have toString() called. This change allows both of these cases to work, as proved by the 2 new tests. Fixes angular#15761 PR Close angular#16392
Currently `new Request({search: ...})` is not honored, and `new Request({params: {'x': 'y'}) doesn't work either, as this object would have toString() called. This change allows both of these cases to work, as proved by the 2 new tests. Fixes angular#15761 PR Close angular#16392
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
Current behavior
When creating a new instance of the
Request
class, the value of thesearch
property of theRequestOptionsArgs
object that is passed to the constructor is not respected, i.e. theRequest
instance has no query parameters. If we use the newparams
property, query parameters are properly set.Expected behavior
It is expected the now deprecated property to works too.
Minimal reproduction of the problem with instructions
Here is the plunk: https://plnkr.co/edit/udWvbiYOwLzx29F974jK
The text was updated successfully, but these errors were encountered: