Migrating to 4.6.0
4.6.0 has an important bug fix for infinite loops. In order for the bug fix to work, you need to add the NavigationStart
option when calling single-spa-angular.
import { NavigationStart, Router } from '@angular/router';
const lifecycles = singleSpaAngular({
bootstrapFunction: () =>
platformBrowserDynamic(getSingleSpaExtraProviders()).bootstrapModule(AppModule),
template: '<navbar-root />',
NgZone,
Router,
// This option is new, and without it the infinite loop fix won't take effect.
NavigationStart,
});
Features
- feat: enable
devtoolNamespace
to prevent source maps collisions (#297)
Fixes
- fix: skip location change for non-imperative navigations. This fixes the issue with infinite redirects (#235)