mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix share image
This commit is contained in:
parent
a5cc19068b
commit
95526fb9ed
1 changed files with 9 additions and 4 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue