fix: normalize camelCase serialization for project API fields, request serialization casing

This commit is contained in:
2026-01-14 09:50:13 -06:00
parent c78fd44ccd
commit 4299f65665
2 changed files with 21 additions and 4 deletions
+11 -2
View File
@@ -61,8 +61,17 @@
});
onMount(() => {
// Randomly choose background component (50/50 chance)
backgroundComponent = Math.random() < 0.5 ? "clouds" : "dots";
// Detect if this is a page reload (F5 or CTRL+F5) vs initial load or SPA navigation
const navigation = performance.getEntriesByType(
"navigation",
)[0] as PerformanceNavigationTiming;
const isReload = navigation?.type === "reload";
// Randomize on reload OR if not yet set (initial load)
// SPA navigation doesn't trigger onMount, so background stays stable
if (isReload || backgroundComponent === null) {
backgroundComponent = Math.random() < 0.5 ? "clouds" : "dots";
}
// Initialize theme store
themeStore.init();