-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX lts] LinkTo with incomplete model failing in rendering tests #19387
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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