v21 regression : component is loaded twice
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 365
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the duplicate load with the two states and the /liste/carte route, then compare the behavior with the previous version and review related issue #1012. No source file or test is named; done means the shared component is instantiated only once during this transition and the regression is covered by a verified test or reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100