ignore: cloud solid fixes

This commit is contained in:
Dax Raad
2025-08-29 11:58:17 -04:00
parent 7f5e5fccc8
commit 4496cd4b64
9 changed files with 206 additions and 351 deletions

View File

@@ -2,7 +2,8 @@ import { Billing } from "@opencode/cloud-core/billing.js"
import { Key } from "@opencode/cloud-core/key.js"
import { action, createAsync, revalidate, query, useAction, useSubmission } from "@solidjs/router"
import { createEffect, createSignal, For, onMount, Show } from "solid-js"
import { getActor, withActor } from "~/context/auth"
import { getActor } from "~/context/auth"
import { withActor } from "~/context/auth.withActor"
/////////////////////////////////////
// Keys related queries and actions
@@ -47,8 +48,11 @@ const createPortalUrl = action(async (returnUrl: string) => {
return withActor(() => Billing.generatePortalUrl({ returnUrl }))
}, "portalUrl")
export default function() {
export default function () {
const actor = createAsync(() => getActor())
onMount(() => {
console.log("MOUNTED", actor())
})
/////////////////
// Keys section