summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-12-14 22:05:53 -0500
committerDax Raad <[email protected]>2025-12-14 22:05:53 -0500
commit2d63c22d1a3de36476c2cd8f948b985672374ddd (patch)
treef641c00a027013d948d64e7bf9f36b1a17621b52
parente22af250760e99c3f4cc88f48ef430e60e43d0a7 (diff)
downloadopencode-2d63c22d1a3de36476c2cd8f948b985672374ddd.tar.gz
opencode-2d63c22d1a3de36476c2cd8f948b985672374ddd.zip
fix share link
-rw-r--r--packages/enterprise/src/routes/share/[shareID].tsx19
1 files changed, 7 insertions, 12 deletions
diff --git a/packages/enterprise/src/routes/share/[shareID].tsx b/packages/enterprise/src/routes/share/[shareID].tsx
index 7cce15906..8fe6f0c1b 100644
--- a/packages/enterprise/src/routes/share/[shareID].tsx
+++ b/packages/enterprise/src/routes/share/[shareID].tsx
@@ -138,18 +138,13 @@ const getData = query(async (shareID) => {
export default function () {
const params = useParams()
- const data = createAsync(
- async () => {
- if (!params.shareID) throw new Error("Missing shareID")
- const now = Date.now()
- const data = getData(params.shareID)
- console.log("getData", Date.now() - now)
- return data
- },
- {
- deferStream: true,
- },
- )
+ const data = createAsync(async () => {
+ if (!params.shareID) throw new Error("Missing shareID")
+ const now = Date.now()
+ const data = getData(params.shareID)
+ console.log("getData", Date.now() - now)
+ return data
+ })
createEffect(() => {
console.log(data())