-
Notifications
You must be signed in to change notification settings - Fork 140
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
link-to assertion fail: property modified twice in a single render #667
Comments
I've tried to research a bit more about this issue and the problem seems to be that, in Since the link-to component of Anyone has an idea of how to fix this? I tried to use Another easy way to test this assertion error is by using the dummy app. Setting a property in the |
Can you try submitting a PR with a failing test case? |
Done, you can find it here #668 |
Does this need to be bumped up to the main ember repo? Doing multiple sets of a property in |
Looking into ember-router-helpers as a possible workaround... comes with a couple of caveats though:
The interesting thing is I think this is mostly tied to passing a bound attribute into the path property. So for example, when using the
Then everything works. So it seems like the major issue here is when you pass bound objects into |
Just noting this here, we also ran into this and were able to workaround this by passing the argument as readonly: <LinkTo @route={{readonly this.dynamicRouteName}}> It's not ideal, but at least it works! |
|
I believe this is fixed now with #735 @rwjblue @HenryVonfire |
ember-source
: from3.10.0
to3.10.2
(I haven't tried with other versions)ember-engines
: from0.7.2
to0.8.2
Linking a property from a component or a controller to the
@route
of a<LinkTo>
tag throws an assertion failed:This wasn't an issue in prior versions of
ember-engines
.Way to reproduce the error:
index
(for example test)link-to
component to the application.hbs (angle brackets or not)this.test
as route for thelink-to
componentWhen visiting the application route of the engine, it will throw the exception. I don't know if it can be relevant, but logging the property passed to the
link-to
component in the devtools, I saw that instead of being just the stringindex
,link-to
transforms it into a getter/setter.The text was updated successfully, but these errors were encountered: