[BUGFIX lts] LinkTo with incomplete model failing in rendering tests#19387
[BUGFIX lts] LinkTo with incomplete model failing in rendering tests#19387rwjblue merged 3 commits intoemberjs:masterfrom
Conversation
While generating link to route "dynamicWithChild.child": can't access property "shouldSupercede", newHandlerInfo is undefined
|
This PR and #19080 should go into 3.24 (LTS) |
LinkTo needs route context to allow omitting model from current active route. Without the guard, tests where LinkTo rendered in tests without routing transition started will break. See issues/19364
rwjblue
left a comment
There was a problem hiding this comment.
Looks good, can you prefix the commit message with [BUGFIX lts]? That is what let's us know to cherry pick things back into the current LTS (3.24).
|
Done, 3.25.1 is released and 3.24.2 is mid-release. |
|
Hello everyone, regarding this fix, The LinkTo component will not render My Integration test did an assert in the link in the Ember 3.20 that started fail in Ember 3.24. |
|
@rogeraraujo90 Do you still have a problem here? Seems that I just noticed that |
|
@lougreenwood try add |
|
Thanks, @rogeraraujo90, did that solve it for you? I'm also already using I've reproduced by both linking to routes without dynamic segments ( The links work fine in acceptance tests and production. I'm planning on creating a minimal repto tomorrow and finding the release where this gets broken. |
Good, go ahead! I'm in Ember 3.24 yet, and using |
|
@rogeraraujo90 Do you still have a problem here? Seems that I just noticed that |
|
@lougreenwood try add |
|
Thanks, @rogeraraujo90, did that solve it for you? I'm also already using I've reproduced by both linking to routes without dynamic segments ( The links work fine in acceptance tests and production. I'm planning on creating a minimal repto tomorrow and finding the release where this gets broken. |
Good, go ahead! I'm in Ember 3.24 yet, and using |
LinkTo needs route context to allow omitting model from current active
route. Without the guard, tests where LinkTo rendered in tests without
routing transition started will break. See #19364
Add failing test before the fix:
While generating link to route "dynamicWithChild.child": can't access
property "shouldSupercede", newHandlerInfo is undefined