Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 2d63c22

Browse files
committed
fix share link
1 parent e22af25 commit 2d63c22

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

packages/enterprise/src/routes/share/[shareID].tsx

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,13 @@ const getData = query(async (shareID) => {
138138

139139
export default function () {
140140
const params = useParams()
141-
const data = createAsync(
142-
async () => {
143-
if (!params.shareID) throw new Error("Missing shareID")
144-
const now = Date.now()
145-
const data = getData(params.shareID)
146-
console.log("getData", Date.now() - now)
147-
return data
148-
},
149-
{
150-
deferStream: true,
151-
},
152-
)
141+
const data = createAsync(async () => {
142+
if (!params.shareID) throw new Error("Missing shareID")
143+
const now = Date.now()
144+
const data = getData(params.shareID)
145+
console.log("getData", Date.now() - now)
146+
return data
147+
})
153148

154149
createEffect(() => {
155150
console.log(data())

0 commit comments

Comments
 (0)