diff options
| author | Dax Raad <[email protected]> | 2025-09-02 16:38:26 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-02 16:38:50 -0400 |
| commit | 042802848ddd536f10076b6822db73c2a7de362d (patch) | |
| tree | 538e524c2fafb903eda03b355b381f02c86a4a78 /cloud/app/src/context/auth.withActor.ts | |
| parent | a8aa44bd3f41d529bd55a44b5b21fe30d2ab4620 (diff) | |
| download | opencode-042802848ddd536f10076b6822db73c2a7de362d.tar.gz opencode-042802848ddd536f10076b6822db73c2a7de362d.zip | |
wip: zen
Diffstat (limited to 'cloud/app/src/context/auth.withActor.ts')
| -rw-r--r-- | cloud/app/src/context/auth.withActor.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cloud/app/src/context/auth.withActor.ts b/cloud/app/src/context/auth.withActor.ts index ca38be89b..a61b728ef 100644 --- a/cloud/app/src/context/auth.withActor.ts +++ b/cloud/app/src/context/auth.withActor.ts @@ -1,16 +1,7 @@ import { Actor } from "@opencode/cloud-core/actor.js" import { getActor } from "./auth" -import { query } from "@solidjs/router" export async function withActor<T>(fn: () => T) { const actor = await getActor() return Actor.provide(actor.type, actor.properties, fn) } - -export function actorQuery<T>(cb: () => T, name: string) { - "use server" - return query(async () => { - const actor = await getActor() - return withActor(cb) - }, name) -} |
