diff options
| author | Dax Raad <[email protected]> | 2025-09-01 03:04:07 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-01 03:04:07 -0400 |
| commit | cf11669618f2b285e1ce9de8b7bae8873436daf8 (patch) | |
| tree | 36036d1126245669bad121265d42ade65a5b36ed /cloud/app/src | |
| parent | 65dc19e85a1f1f64e52277e91a8683cade9f4989 (diff) | |
| download | opencode-cf11669618f2b285e1ce9de8b7bae8873436daf8.tar.gz opencode-cf11669618f2b285e1ce9de8b7bae8873436daf8.zip | |
wip: cloud
Diffstat (limited to 'cloud/app/src')
| -rw-r--r-- | cloud/app/src/routes/workspace/[id].tsx | 11 |
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) |
