SSR off
This commit is contained in:
parent
d7b43effa2
commit
42ffa3c51e
3 changed files with 4 additions and 5 deletions
|
|
@ -6,12 +6,12 @@
|
||||||
ref = $bindable(null),
|
ref = $bindable(null),
|
||||||
class: className,
|
class: className,
|
||||||
...restProps
|
...restProps
|
||||||
}: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
|
}: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<span
|
||||||
bind:this={ref}
|
bind:this={ref}
|
||||||
data-slot="skeleton"
|
data-slot="skeleton"
|
||||||
class={cn("bg-accent animate-pulse rounded-md", className)}
|
class={cn("bg-accent animate-pulse rounded-md", className)}
|
||||||
{...restProps}
|
{...restProps}
|
||||||
></div>
|
></span>
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export const ssr = false;
|
|
||||||
|
|
@ -16,5 +16,5 @@ export async function GET(event) {
|
||||||
route: { id: "/api/hopium/questions/[id]" }
|
route: { id: "/api/hopium/questions/[id]" }
|
||||||
};
|
};
|
||||||
|
|
||||||
return await getHopiumQuestion(hopiumEvent);
|
return await getHopiumQuestion(hopiumEvent as any);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue