ember.js: `delegate is not a function`
I just updated our app to try the latest Canary and it appears to break query params for us.
We’re seeing:
Error while processing route: xxx delegate is not a function TypeError: delegate is not a function
Here’s the backtrace etc…

I’ll see if I can reproduce in a smaller app asap.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 34 (20 by maintainers)
Commits related to this issue
- [BUGFIX beta] sets the controller _qpDelegate before mapping all the queryParams. In certain scenarios, if query params are shared through a service, bound query params will fire the _qpDelegate w... — committed to rauhryan/ember.js by rauhryan 8 years ago
- [BUGFIX beta] sets the controller _qpDelegate before mapping all the queryParams. In certain scenarios, if query params are shared through a service, bound query params will fire the _qpDelegate whil... — committed to rauhryan/ember.js by rauhryan 8 years ago
- [BUGFIX beta] sets the controller _qpDelegate before mapping all the queryParams. In certain scenarios, if query params are shared through a service, bound query params will fire the _qpDelegate whil... — committed to emberjs/ember.js by rauhryan 8 years ago
What i’ve found, is that if you run something in the controller (like
this.set('something', someValue)before the route finishes thesetupController, then it fails. I hope this helps to you to fix it.Managed to reproduce in JSBin, it looks to be if the query param is a computed property:
http://emberjs.jsbin.com/dusufa