v21 regression : component is loaded twice
Author: medi6Created Jan 6, 2026Updated Jan 14, 2026
Hi,
before all, thanks for this beautifull project.
I've got a regression with the last version. My component is loaded twice.
My code is not clean, for this exemple, but, before this version it was working.
Just try this :
Two states loading the same component, one child to another
{ name: "app.benef.benef", url: "/liste", views: { "main@": { component: BeneficiaireMainComponent } }, }, { name: "app.benef.benef.carte", views: { "main@": { component: BeneficiaireMainComponent } }, url: "/carte" }Then go to /liste/carte : BeneficiaireMainComponent is loaded twice...
#1012
Source: ui-router/angular