-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
On project with per-page rendermode, the traces are pretty useless.
Microsoft.AspNetCore.Components.Navigate adds links to the route and then stores it in the link store.
| _componentsActivityLinkStore!.SetActivityContext(ComponentsActivityLinkStore.Route, activity.Context, |
However, when an event handler is run, that is in circuit context, which has a DIFFERENT _componentsActivityLinkStore and thus the links it was supposed to add does not exist.
Expected Behavior
On <Routes @rendermode="InteractiveServer" />

and link to page activity in the event activity:
Steps To Reproduce
- make new blank blazor with aspire and global rendermode.
- Start project
- Click Counter link
- Click Increment a few times
- Find trace in aspire -> CORRECT
- convert app to per-page (or just create another with per-page rendermode)
a. remove global rendermode
b. add rendermode to home and counter page - do 2-5 again -> INCORRECT
Exceptions (if any)
On page level @rendermode
.NET Version
10.0.100
Anything else?
No response