Repository navigation
Fix for aux routes with empty base route - #25585
VamsiVempati wants to merge 6 commits into
Conversation
Add a null check to see if the modules are lazy loaded before returning the routes Closes angular#12842
…null check Remove non null assertion operator as it is replaced by null check Fixes angular#12842
Fixes lint in tests for recognize
Fix lint in tests for recognize
Fix lint on tests for recognize
xdescribed new test as the test suite seems to be sporadic
|
Encountered the bug with a lazy loaded module and an aux route, I tried to apply that directly into the node_modules folder and it didn't solve the issue. It's true that it wasn't crashing anymore but the main outlet (the one with On the other hand, I did the same test with the following PR and it worked perfectly: #25483 |
|
Closing as this doesn't fix the underlying problem. This change only prevents the error from occurring when attempting to activate the auxiliary route with loadChildren. The required fix would be to ensure the module is actually loaded in |
|
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. |
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?
Navigating to an auxiallry route on a lazy loaded empty base route throws the following error:
#12842
Issue Number: #12842
What is the new behavior?
Navigating to an auxiallry route on a lazy loaded empty base route does not throw any error and navigates successfully
Does this PR introduce a breaking change?
Other information