From cf11669618f2b285e1ce9de8b7bae8873436daf8 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 1 Sep 2025 03:04:07 -0400 Subject: [PATCH] wip: cloud --- cloud/app/src/routes/workspace/[id].tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cloud/app/src/routes/workspace/[id].tsx b/cloud/app/src/routes/workspace/[id].tsx index a03811c1..c4c18bc6 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)