[Bug] Error when transitioning to a route with QPs
See original GitHub issue🐞 Describe the Bug
I am transitioning to a route that has a :name
in the url and also QPs. This transition can be slow. If, while the transition is still taking place, I try to transition to the same route with different QPs, I get the following error.
Error: You must provide param `name` to `generate`.
at getParam (route-recognizer.js:137)
at Array.generate.<computed> (route-recognizer.js:183)
at RouteRecognizer.generate$1 [as generate] (route-recognizer.js:553)
at PrivateRouter._updateURL (router_js.js:1651)
at router_js.js:1250
at invokeCallback (rsvp.js:485)
at rsvp.js:546
at rsvp.js:14
at invokeWithOnError (backburner.js:272)
at Queue.flush (backburner.js:182)
🔬 Minimal Reproduction
TODO
😕 Actual Behavior
My theory is that the router is trying to update the QPs on the current route, not the future one. In the above example, if I pause where the error is thrown, I can see that params
are the params of the current route, not the future one.
🤔 Expected Behavior
This doesn’t raise an error.
🌍 Environment
- Ember: 3.25.3
- Node.js/npm: 14.15.1
- OS: macOS 11.2.3
- Browser: Chrome 91.0.4449.6
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Changing query params in transitionTo doesn't seem work
I am in my application route and have query-params defined in its ... or do the console error messages indicate some kind of...
Read more >Navigator 2.0 Route Transition Bug - flutter - Stack Overflow
I am stuck with a bugged animation when I try to set a Navigator 2.0 on part of the screen. My App Layout...
Read more >Optimization Guide | Google Maps Platform
This guide describes several strategies to optimize your Google Maps APIs usage in terms of security, performance, and consumption.
Read more >AWS resources that you can send Resolver query logs to
If you expect to log queries for workloads with high queries per second (QPS), you should use Amazon S3 to ensure your query...
Read more >Qinsy 9.2.0 - Resolved Bugs - QPS Confluence
Bug Fixes. Below you will find listings of bugs which have been reported in previous releases and which have been solved for the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wagenet I tried to write a test to reproduce you use case, but it fails with an other error.
So I don’t know if this is the exact reproduction, but anyway… this is bad 😦
Look for bugs labeled QueryParams, this issue has been lurking circa 2015.