fix: add loading state

finxol.io bdea9b80 c7f79e94

verified
Changed files
+6 -3
app
pages
util
+4
app/pages/posts/[...slug].vue
···
<Suspense>
<BskyComments v-if="post.bskyCid" :cid="post.bskyCid" />
+
+
<template #fallback>
+
<h1 class="text-xl font-bold text-stone-600">Loading comments...</h1>
+
</template>
</Suspense>
</article>
-1
app/util/atproto.ts
···
});
if (!ok) {
-
console.error(data);
console.error("Error fetching thread:", data.error);
return { $type: "app.bsky.feed.defs#notFoundPost" };
}
+2 -2
deno.jsonc
···
{
"deploy": {
-
"org": "finxol",
-
"app": "blogging"
+
"org": "finxol",
+
"app": "blogging"
}
}