Closed gzurbach closed 7 years ago
It would be nice to add support for promises returned from the titleToken
method. As a workaround, you could load the user as part of your model hook so it will be loaded when titleToken
is called.
That did the trick, thanks!
I've made a pull request to resolve this issue quite a long time ago, but it hasn't been reviewed and merged yet. It seems that this project is not being supported anymore :(
I've made a pull request to resolve this issue quite a long time ago, but it hasn't been reviewed and merged yet. It seems that this project is not being supported anymore :(
Sorry about that. I don't use Ember for work at the moment, so fitting in working on addons is a bit harder than it used to be.
Hi there! First off, thanks a lot for this great add-on. I've been using it for a while and just found out a (minor) issue.
I have a
models/foo.js
with anasync
relationship to auser
such as:In my
routes/foo.js
I have the followingtitleToken
:Because
user
is async,user.firstName
isundefined
at this point (user
is still aPromise
). When the promise is resolved, the title does not recompute so my title stays empty.Would you have any recommendation about how to circumvent this issue? Thanks!