docs: add suspense to RN (#4801)

This commit is contained in:
Johannes
2025-02-24 21:54:32 -08:00
committed by GitHub
parent c96f7fed18
commit ebb02a5723
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1,2 @@
{"branchName": "fix-images"}

View File

@@ -165,6 +165,7 @@ export default function FormbricksProvider() {
```typescript app/layout.tsx
// other imports
import FormbricksProvider from "./formbricks";
import { Suspense } from "react";
export default function RootLayout({
children,
@@ -173,7 +174,9 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<FormbricksProvider />
<Suspense>
<FormbricksProvider />
</Suspense>
<body>{children}</body>
</html>
);