Commit a00137a
Harden AppType startup: await render quiescence, dispose renderer, scope MapAppType
Addresses correctness concerns from PR review feedback:
- HybridHostPageRenderer.Render now awaits the host component's QuiescenceTask
before serializing to HTML, so asynchronously-initialized host content (e.g.
OnInitializedAsync) and its render-mode registrations are not dropped from the
generated document. Mirrors the framework's own static HTML rendering.
- The static renderer is now disposed (on its dispatcher) after each host render
instead of being leaked.
- MapAppType early-returns when AppType is null, leaving the legacy HostPage
startup path completely untouched.
MacCatalyst device tests: 45 passed, 1 pre-existing skip (AppType host/mount,
dynamic head, @assets fingerprinting, and legacy paths all green).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 2ca68fe1-bef6-46a6-a0fd-17b7654cef341 parent 1151747 commit a00137a
2 files changed
Lines changed: 28 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
88 | 103 | | |
89 | 104 | | |
90 | 105 | | |
| |||
0 commit comments