fix(spa): tab title stuck on Loading… (re-render + unicode ellipsis) #403
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-287-tab-title-stuck-loading"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP - for review when you're back. Not urgent to merge.
Problem
On a ticket detail page the header shows the real record name ("T000001: QA-Login page returns 500 on submit") but the browser tab stays
Loading… | Mokosh Platform- stuck even after the record loaded. (#402 shipped a first attempt but it didn't actually fix this; see below.)Two causes
AppLayoutsetdocument.titleinside ause_effectthat capturedtitleby value and read no signal, so it fired once on mount and never re-ran whenprops.titleadvanced from the loading placeholder to the record name. The tab was frozen on whatever it was at first paint."Loading…"(U+2026), not ASCII"Loading..."- so #402's equality check (== "Loading...") never matched anyway. (Confirmed:grep '"Loading…"' src/pages/*.rs- tickets/time all use U+2026.)Fix
document.titledirectly in the component body (runs on every render,set_titleis idempotent) so it advances to the record name as soon as it loads."Loading…"and"Loading..."(and empty) as "no title yet" → cleanMokosh Platformuntil the real title arrives.Verify (after this builds + staging pulls :latest)
T000001: … | Mokosh Platform, notLoading….Mokosh Platform, never the placeholder.Pairs with #402 (favicon/manifest, already merged). No dependency/lock changes.
WIP: fix(spa): tab title stuck on Loading… (re-render + unicode ellipsis)to fix(spa): tab title stuck on Loading… (re-render + unicode ellipsis)