summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-01 03:04:07 -0400
committerDax Raad <[email protected]>2025-09-01 03:04:07 -0400
commitcf11669618f2b285e1ce9de8b7bae8873436daf8 (patch)
tree36036d1126245669bad121265d42ade65a5b36ed
parent65dc19e85a1f1f64e52277e91a8683cade9f4989 (diff)
downloadopencode-cf11669618f2b285e1ce9de8b7bae8873436daf8.tar.gz
opencode-cf11669618f2b285e1ce9de8b7bae8873436daf8.zip
wip: cloud
-rw-r--r--cloud/app/src/routes/workspace/[id].tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/cloud/app/src/routes/workspace/[id].tsx b/cloud/app/src/routes/workspace/[id].tsx
index a03811c17..c4c18bc66 100644
--- a/cloud/app/src/routes/workspace/[id].tsx
+++ b/cloud/app/src/routes/workspace/[id].tsx
@@ -63,13 +63,14 @@ const createPortalUrl = action(async (returnUrl: string) => {
return withActor(() => Billing.generatePortalUrl({ returnUrl }))
}, "portalUrl")
-export default function() {
- const actor = createAsync(() => getActor())
+export default function () {
/////////////////
// Keys section
/////////////////
- const keys = createAsync(() => listKeys())
+ const keys = createAsync(() => listKeys(), {
+ deferStream: true,
+ })
const createKeyAction = useAction(createKey)
const removeKeyAction = useAction(removeKey)
const createKeySubmission = useSubmission(createKey)
@@ -157,7 +158,9 @@ export default function() {
/////////////////
// Billing section
/////////////////
- const billingInfo = createAsync(() => getBillingInfo())
+ const billingInfo = createAsync(() => getBillingInfo(), {
+ deferStream: true,
+ })
const createCheckoutUrlAction = useAction(createCheckoutUrl)
const createCheckoutUrlSubmission = useSubmission(createCheckoutUrl)