You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially this issue is quite simple to explain, and I have a feeling that it is one of those issues that quite a few people might be facing but because the workaround is so simple it likely gets overlooked. In my case it would end up being a breaking change to empress-blog and something that bleeds into the empress-blog-template ecosystem 🙈 so I would prefer to avoid the "workaround" of saying "just pass the id into the link".
The situation is that I have a post object that has a relationship to primaryTag and I want to link to the "tag page" of the primaryTag (showing all other content with this same tag) and I try to do something like this:
but when you do that you get the following in the console:
Uncaught Error: Assertion Failed: You attempted to generate a link for the "tag" route, but did not pass the models required for generating its dynamic segments. You must provide param `id` to `generate`.
Reproduction
I created a github repo with a simple reproduction, and a PR that "introduces the bug" to the main branch 😂
Note: I have tested this (using ember-try) on lots of other versions of ember and ember-data, this test app just seems a little behind. Let me know if you would like me to test this in a more recent ember-data 👍
The text was updated successfully, but these errors were encountered:
@mansona Hi Chris! Thx for the issue. This looks to be a bug in serializing Ember routeInfos when the target is a Proxy where key in target fails. I put up a quick PR (will come back and check the tests before my comp shuts down).
Description
I noticed this while working on a recent change in empress-blog to try and workaround an issue where we can't rely on the sort order of hasMany relationships
Essentially this issue is quite simple to explain, and I have a feeling that it is one of those issues that quite a few people might be facing but because the workaround is so simple it likely gets overlooked. In my case it would end up being a breaking change to empress-blog and something that bleeds into the empress-blog-template ecosystem 🙈 so I would prefer to avoid the "workaround" of saying "just pass the id into the link".
The situation is that I have a post object that has a relationship to
primaryTag
and I want to link to the "tag page" of the primaryTag (showing all other content with this same tag) and I try to do something like this:but when you do that you get the following in the console:
Reproduction
I created a github repo with a simple reproduction, and a PR that "introduces the bug" to the main branch 😂
mansona/ember-data-bug-reproduction#1
It is being deployed to netlify so you can see it doesn't work if you check the preview deploy 👍
Versions
Note: I have tested this (using ember-try) on lots of other versions of ember and ember-data, this test app just seems a little behind. Let me know if you would like me to test this in a more recent ember-data 👍
The text was updated successfully, but these errors were encountered: