Blazor WebAssembly startup re-renders components once per StateHasChanged
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #12754 by @yasmoradi — closed without merging
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp, wasm
- Domain
- frontend, performance
Research direction
The issue identifies root and layout components in the Boilerplate.Client.Core area: AppShell, Header, NavBar, HomePage, and AppAiChatPanel. Start by tracing their StateHasChanged calls and how startup rendering is triggered; the issue does not name specific files or tests. Done means avoiding the redundant startup subtree renders while preserving the components' required final state.
Written by the indexing model from the issue text.
Description
Problem
During Blazor WebAssembly startup, root/layout components (AppShell, Header, NavBar, HomePage, AppAiChatPanel) receive a burst of StateHasChanged calls, and each one triggers a full subtree re-render. On the WASM UI thread this startup rendering is a measurable bottleneck, and most of these intermediate renders are discarded almost immediately.
Impact
- Avoidable render CPU during the most latency-sensitive window (time-to-interactive).
- Slower perceived startup on Blazor WebAssembly specifically.
Area
Boilerplate template — Boilerplate.Client.Core components.
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 264
- Avg merge
- 7h 38m
- Merged PRs (30d)
- 544
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from bitfoundation/bitplatform
-
BitVariantVariablesBrowserTests fails on the scrolled variables of BitHeaderPossibly taken @yasmoradi claimed this today. Openarea / BlazorUI
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
bitfoundation/bitplatform#15485 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
bitfoundation/bitplatform#15051 ·
Maintainers usually reply within 1 day
-
Prerelease `v-11.0.0-pre-25`Possibly taken @yasmoradi claimed this today. Openprerelease
bitfoundation/bitplatform#15482 · 1 assignee ·
Maintainers usually reply within 1 day
-
Project dependencies are outdatedPossibly taken @yasmoradi claimed this today. Opendependencies
Difficulty 3/5 1-2 days Newbie friendliness 25/100
bitfoundation/bitplatform#15480 ·
Maintainers usually reply within 1 day
-
Bswup's AlwaysPrerender mode doesn't open the cached app when the server is downPossibly taken @msynk claimed this today. Openarea / bswup
bitfoundation/bitplatform#15479 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in bitfoundation/bitplatform
Similar issues
-
chore interpreter small
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
hexide-io/HexIDE#5718 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
PCL-Community/PCL-CE#3907 ·
Maintainers usually reply within 1 day
-
chore
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
lugassawan/swe-workbench#841 ·
-
aikido high security
Difficulty 1/5 Under an hour Newbie friendliness 66/100
dequelabs/axe-core-nuget#312 ·
-
[Bug]: reply would start a thread under a targeted message if its payload carried a reply chain idOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day