feat(core): add initialNavigation schematic - #36926
CaerusKaru wants to merge 2 commits into
Conversation
6f23cbc to
b3cb8ef
Compare
There was a problem hiding this comment.
I'm not sure if we can have this change as part of the migration in 10.1 since legacy_disabled and false work slightly differently than disabled. We might only be able to make migrations that are exactly 1 to 1 now and then update this in v11.
There was a problem hiding this comment.
@CaerusKaru now that master is targeting v11, I think we can submit this change. Can you do a quick pass over this migration and the follow-up PR to remove the old options?
devversion
left a comment
There was a problem hiding this comment.
LGTM. A few minor nits. I'm glad we decided on the more straightforward non-static-interpreter approach as that seems to capture the most common cases quite reliably.
There was a problem hiding this comment.
Nit: should these assertions (and in other tests) be a little more precise? Right now options could theoretically swapped in wrong order. Might just make this a small regex checking for surrounding context.
dd42af1 to
e12d456
Compare
atscott
left a comment
There was a problem hiding this comment.
LGTM with a couple small comments
68bffa3 to
cfd6380
Compare
There was a problem hiding this comment.
Nit: The _rule part in the file name feels confusing. I think it would be more consistent without the _rule part as well (although some other spec files have it, most don't).
There was a problem hiding this comment.
Nit: Since this change is unrelated, consider moving it to a separate commit.
There was a problem hiding this comment.
Consider moving it into a private method or outside of applyWithProgram so the function doesn't get re-declared on each invocation.
44c03cd to
d384e65
Compare
Add a schematic to update users to the new v11 `initialNavigation` options for `RouterModule`. This replaces the deprecated/removed `true`, `false`, `legacy_disabled`, and `legacy_enabled` options with the newer `enabledBlocking` and `enabledNonBlocking` options.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Add a schematic to update users to the new v11
initialNavigationoptions for
RouterModule. This replaces the deprecated/removedtrue,false,legacy_disabled, andlegacy_enabledoptionswith the newer
enabledBlockingandenabledNonBlockingoptions.PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Follow-up to #33128