Bug Report
File: src/routes/+page.svelte
Description
serverHistory is initialized by calling getServerHistory() directly at the top of the script block (line 26). Since this runs during SSR in SvelteKit, getServerHistory() detects typeof window === 'undefined' and returns [], causing a flash of empty history list on first client render until hydration corrects it.
Affected Code (line 26)
let serverHistory = $state<ServerHistoryItem[]>(getServerHistory()); // runs during SSR → []
Bug Report
File:
src/routes/+page.svelteDescription
serverHistoryis initialized by callinggetServerHistory()directly at the top of the script block (line 26). Since this runs during SSR in SvelteKit,getServerHistory()detectstypeof window === 'undefined'and returns[], causing a flash of empty history list on first client render until hydration corrects it.Affected Code (line 26)