Browse Source

fix share image

Dax Raad 2 months ago
parent
commit
95526fb9ed
1 changed files with 9 additions and 4 deletions
  1. 9 4
      packages/enterprise/src/routes/share/[shareID].tsx

+ 9 - 4
packages/enterprise/src/routes/share/[shareID].tsx

@@ -138,10 +138,15 @@ const getData = query(async (shareID) => {
 
 export default function () {
   const params = useParams()
-  const data = createAsync(async () => {
-    if (!params.shareID) throw new Error("Missing shareID")
-    return getData(params.shareID)
-  })
+  const data = createAsync(
+    async () => {
+      if (!params.shareID) throw new Error("Missing shareID")
+      return getData(params.shareID)
+    },
+    {
+      deferStream: true,
+    },
+  )
 
   createEffect(() => {
     console.log(data())