summaryrefslogtreecommitdiffhomepage
path: root/cloud
diff options
context:
space:
mode:
Diffstat (limited to '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)