diff --git a/src/lib/components/layout/main/DynamicLinks.svelte b/src/lib/components/layout/main/DynamicLinks.svelte index dfe1e47..b843145 100644 --- a/src/lib/components/layout/main/DynamicLinks.svelte +++ b/src/lib/components/layout/main/DynamicLinks.svelte @@ -1,6 +1,8 @@ {#if isVisible}
blue.linkat.board record at https://linkat.blue/
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index ee672c1..8f51656 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -2,6 +2,7 @@
import { onMount } from "svelte";
import { getStores } from "$app/stores";
import { createComponentDebugger } from "$lib/utils/debug.js";
+ import { getCache } from "$utils/cache";
import type { Post, LinkBoard } from "$components/shared";
const { page } = getStores();
@@ -24,6 +25,9 @@
let isLoadingPosts = $state(false);
let isLoadingLinks = $state(false);
+ // Check if we have cached data for links
+ let hasCachedLinks = $state(false);
+
onMount(() => {
debug.lifecycle('MainPage', 'mounted', {
hasData: !!data,
@@ -32,6 +36,13 @@
initialDynamicLinksCount: data?.dynamicLinks ? 'hasData' : 'noData'
});
+ // Check for cached links data immediately
+ const cachedLinks = getCache