Skip to content

Commit

Permalink
warp search params with suspense boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
fachrihawari committed Sep 16, 2024
1 parent 94d093a commit 78dfc2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import SweetAlert from "@/components/SweetAlert";
import "./globals.css";
import type { Metadata } from "next";
import { Poppins } from "next/font/google";
import { Suspense } from "react";

export default function RootLayout({ children }: Readonly<Props>) {
return (
<html lang="en">
<body className={`${poppins.variable} font-sans`}>
<SweetAlert />
<Suspense>
<SweetAlert />
</Suspense>
{children}
</body>
</html>
Expand Down

0 comments on commit 78dfc2c

Please sign in to comment.