瀏覽代碼

wip: cloud

Dax Raad 5 月之前
父節點
當前提交
cf11669618
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      cloud/app/src/routes/workspace/[id].tsx

+ 7 - 4
cloud/app/src/routes/workspace/[id].tsx

@@ -63,13 +63,14 @@ const createPortalUrl = action(async (returnUrl: string) => {
   return withActor(() => Billing.generatePortalUrl({ returnUrl }))
   return withActor(() => Billing.generatePortalUrl({ returnUrl }))
 }, "portalUrl")
 }, "portalUrl")
 
 
-export default function() {
-  const actor = createAsync(() => getActor())
+export default function () {
 
 
   /////////////////
   /////////////////
   // Keys section
   // Keys section
   /////////////////
   /////////////////
-  const keys = createAsync(() => listKeys())
+  const keys = createAsync(() => listKeys(), {
+    deferStream: true,
+  })
   const createKeyAction = useAction(createKey)
   const createKeyAction = useAction(createKey)
   const removeKeyAction = useAction(removeKey)
   const removeKeyAction = useAction(removeKey)
   const createKeySubmission = useSubmission(createKey)
   const createKeySubmission = useSubmission(createKey)
@@ -157,7 +158,9 @@ export default function() {
   /////////////////
   /////////////////
   // Billing section
   // Billing section
   /////////////////
   /////////////////
-  const billingInfo = createAsync(() => getBillingInfo())
+  const billingInfo = createAsync(() => getBillingInfo(), {
+    deferStream: true,
+  })
   const createCheckoutUrlAction = useAction(createCheckoutUrl)
   const createCheckoutUrlAction = useAction(createCheckoutUrl)
   const createCheckoutUrlSubmission = useSubmission(createCheckoutUrl)
   const createCheckoutUrlSubmission = useSubmission(createCheckoutUrl)