mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 09:16:36 +00:00
ignore: cloud stuff
This commit is contained in:
15
cloud/app/src/routes/[workspaceID].tsx
Normal file
15
cloud/app/src/routes/[workspaceID].tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createAsync, query } from "@solidjs/router"
|
||||
import { getActor, withActor } from "~/context/auth"
|
||||
|
||||
const getPosts = query(async () => {
|
||||
"use server"
|
||||
return withActor(() => {
|
||||
return "ok"
|
||||
})
|
||||
}, "posts")
|
||||
|
||||
|
||||
export default function () {
|
||||
const actor = createAsync(async () => getActor())
|
||||
return <div>{JSON.stringify(actor())}</div>
|
||||
}
|
||||
Reference in New Issue
Block a user