Repository navigation
Clarify Blazor debugger, cache, and circuit behavior - #70348
Conversation
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Two comments remain inaccurate: live cached components still execute lifecycle logic and checks, while later debug-proxy requests reuse the initial endpoint rather than reconfigure it.
2 open issues
What changed in this PR
This documentation-only PR clarifies existing Blazor debugger, cache, and circuit behavior without changing runtime logic.
Changes:
- Explains browser debugger endpoints and .NET debug proxy reuse.
- Expands guidance on cached content and output-dependent cache keys.
- Documents current-user handling during circuit restoration and authentication-state updates.
| File | Description |
|---|---|
src/Components/WebAssembly/Server/src/WebAssemblyNetDebugProxyAppBuilderExtensions.cs |
Adds comments on browser endpoints and proxy startup. |
src/Components/Server/src/ComponentHub.cs |
Clarifies which user is used when restoring a circuit. |
src/Components/Server/src/Circuits/CircuitHost.cs |
Documents authentication-state updates and retained component data. |
src/Components/Endpoints/src/CacheView/CacheViewService.cs |
Explains cached content replacing the original child content. |
src/Components/Endpoints/src/CacheView/CacheView.cs |
Expands cache-key guidance for claims and tenant-dependent output. |
Review effort: Balanced
ilonatommy
left a comment
There was a problem hiding this comment.
Debugger and circuit comments approved.
|
/review |
PureWeen
left a comment
There was a problem hiding this comment.
The local G/S/O panel found one new P3 documentation issue at this commit (G and O agree; both native candidate verifiers returned KEEP). Existing cache-hit and debug-proxy feedback was deduplicated. This is a documentation accuracy finding, not a runtime regression.
Human-directed and GitHub Copilot-generated.
| /// If cached content depends on claims such as roles or access levels, set <see cref="VaryBy"/> | ||
| /// to a value derived from those claims. When the user has a nonempty name identifier, | ||
| /// <see cref="VaryByUser"/> does not include other claims in the cache key. | ||
| /// When a name identifier is present, <see cref="VaryByUser"/> does not include |
There was a problem hiding this comment.
[P3] Preserve the nonempty name-identifier condition
Please restore the previous nonempty name identifier qualification and its description of excluding other claims. A principal can contain new Claim(ClaimTypes.NameIdentifier, ""): AppendUserIdentity then fails !string.IsNullOrEmpty(nameIdClaim.Value) and falls back to hashing all claims, including roles (CacheViewKeyResolver.cs:205-220). With VaryByUser=true, changing a role therefore changes the key even though a name-identifier claim is present. The new public XML remark says roles are excluded in that case, unlike the previous wording.
Co-authored-by: Copilot App <[email protected]>
|
/review |
|
✅ No documentation PR was created. Confidence that documentation is needed: 10% No docs needed: the PR is a comment/XML-doc clarification with no observable behavior change. Documentation surfaces considered
|

Description
Clarifies how debugging requests select and reuse browser endpoints, how
CacheViewreuses output, and how circuit restoration handles the current user.