Fix workspace user header null render and ignore .idea
This commit is contained in:
4
FAQ.md
4
FAQ.md
@@ -73,6 +73,10 @@ There is no separate activate button in Play. The selected character in the char
|
||||
`Home.razor` + `Home.razor.cs` now act as a small gateway that switches between loading, anonymous auth, and workspace views.
|
||||
Authenticated application state and behavior were moved into `Components/Pages/Workspace.razor`, while reusable concern UI remains under `Components/Pages/HomeControls/`.
|
||||
|
||||
## Why does the workspace header sometimes show "Loading user..." briefly?
|
||||
|
||||
`Workspace` initializes authenticated session data after the first render (`OnAfterRenderAsync`). During that first render pass, the header now intentionally shows a null-safe fallback label instead of dereferencing user fields before `/api/me` has been loaded.
|
||||
|
||||
## Why is auth form state kept in `AuthSection` instead of `Home`?
|
||||
|
||||
Auth inputs, validation, and submit workflows are transient UI concerns, so they now live in `AuthSection`. `Home` keeps shared session/workspace state and cross-control refresh/orchestration only.
|
||||
|
||||
Reference in New Issue
Block a user