Dax Raad 3 months ago
parent
commit
9403f6ced5
1 changed files with 5 additions and 2 deletions
  1. 5 2
      packages/enterprise/src/routes/share/[shareID].tsx

+ 5 - 2
packages/enterprise/src/routes/share/[shareID].tsx

@@ -3,7 +3,7 @@ import { SessionTurn } from "@opencode-ai/ui/session-turn"
 import { SessionReview } from "@opencode-ai/ui/session-review"
 import { DataProvider } from "@opencode-ai/ui/context"
 import { createAsync, query, RouteDefinition, useParams } from "@solidjs/router"
-import { createMemo, ErrorBoundary, For, Match, Show, Switch } from "solid-js"
+import { createEffect, createMemo, ErrorBoundary, For, Match, Show, Switch } from "solid-js"
 import { Share } from "~/core/share"
 import { Logo, Mark } from "@opencode-ai/ui/logo"
 import { IconButton } from "@opencode-ai/ui/icon-button"
@@ -85,7 +85,6 @@ const getData = query(async (shareID) => {
   }
   const match = Binary.search(result.session, share.sessionID, (s) => s.id)
   if (!match.found) throw new SessionDataMissingError({ sessionID: share.sessionID })
-  console.log(result)
   return result
 }, "getShareData")
 
@@ -100,6 +99,10 @@ export default function () {
     return getData(params.shareID)
   })
 
+  createEffect(() => {
+    console.log(data())
+  })
+
   return (
     <ErrorBoundary
       fallback={(e) => {