Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add suspense boundary

Steven Teye1646e9054d9
diff --git a/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx b/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx
index 87cc1734ad..155585a747 100644
--- a/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx
@@ -83,7 +83,7 @@ export default async function Authorize({
<ScopesRequested scopes={requestParams.scope} />
</div>
<div className="flex flex-col space-y-2 border-t border-gray-200 bg-white px-2 py-6 sm:rounded-b-2xl sm:px-10">
- <Suspense fallback={<></>}>
+ <Suspense>
<AuthorizeForm oAuthApp={oAuthApp} {...requestParams} />
</Suspense>
</div>
diff --git a/apps/web/ui/layout/auth-layout.tsx b/apps/web/ui/layout/auth-layout.tsx
index 170f6a8f46..312a08233e 100644
--- a/apps/web/ui/layout/auth-layout.tsx
+++ b/apps/web/ui/layout/auth-layout.tsx
@@ -1,5 +1,6 @@
import { BlurImage, ClientOnly, Wordmark } from "@dub/ui";
import Link from "next/link";
+import { Suspense } from "react";
const logos = [
"vercel",
@@ -39,7 +40,7 @@ export default function AuthLayout({
</h3>
</div>
<div className="grid gap-3 bg-gray-50 px-4 py-8 sm:px-16">
- {children}
+ <Suspense>{children}</Suspense>
</div>
</div>
<p className="mt-4 text-center text-sm text-gray-500">