-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Route Snapshot fragment is sometimes null and sometimes undefined #29391
Copy link
Copy link
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: routereffort1: hoursfreq3: highopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedstate: has PRtype: bug/fix
Milestone
Description
🐞 bug report
Affected Package
The issue is caused by package @angular/routerIs this a regression?
NoDescription
Sometimes the route snapshot fragment is null and sometimes its undefined for the exact same route. This can cause issues down the line when the when the routing code is doing comparisons on the snapshot fragment.🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-8vqamz- Click A - You will see an output of "A - undefined"
- Click Reload - You will see an output of "A - null"
🌍 Your Environment
7.2.5Anything else relevant?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: routereffort1: hoursfreq3: highopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedstate: has PRtype: bug/fix