-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
When using a single navbar for all applications, repeated navigations within a single app fail #49
Comments
I am able to navigate within app but it logs exception when navigate between multiple applications: core.js:15724 ERROR Error: Expected to not be in Angular Zone, but it is! StephenRansom: kindly share sample of your main.ts and route files. it seem an issue with our configuration. |
@HemendPatel63 Are you using the most recent beta (12 at this time), and are you doing all of your navigation from a single navbar app? If I have a navbar that only contains links to each app root, and each subapp does it's own routing (from a self contained navbar), I don't encounter issues. It's only when I do all routing from the separate navbar app that I encounter this issue. I'll post a sample when I get a chance though. (for reference, https://github.com/StephenRansom/single-spa-beta-tabbed-app-navigation works fine) |
I made a copy of joel's example app and added subroutes to demonstrate what I'm seeing. (you can also just |
Yeah beta.12 should solve the "Expected to not be in Angular Zone, but it is!" issue. I'll take a look at that example repo for the issue described for subroutes. |
This occurs when you have a single navbar app that controls navigation between multiple applications, including their subroutes.
The first navigation to any app or app subroute completes successfully. Any subsequent navigation inside that same app will fail. For example:
/app1 -> /app2 -> /app1 will succeed.
/app1 -> /app1/subroute will fail to load the subroute.
/app1 -> /app2 -> /app1/subroute will succeed.
In other words, navigation switching between apps works fine, but subsequent navigations within a single app (from routes on the navbar) will fail until you first navigate outside of the app.
The text was updated successfully, but these errors were encountered: