The open source coding agent.
TypeScript
fix share link
Dax Raad2d63c22d1a3d
diff --git a/packages/enterprise/src/routes/share/[shareID].tsx b/packages/enterprise/src/routes/share/[shareID].tsxindex 7cce15906fb..8fe6f0c1bb4 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())