Skip to content

Commit

Permalink
fix(Notification): Add Suspense to NotificationContainer (#1002)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Auf dem Kampe <[email protected]>
  • Loading branch information
TimAufdemKampe and Tim Auf dem Kampe authored Nov 25, 2024
1 parent 11fe256 commit 843b8ed
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ComponentProps, FC } from "react";
import { Suspense } from "react";
import React from "react";
import ReactDOM from "react-dom";
import clsx from "clsx";
Expand Down Expand Up @@ -36,10 +37,12 @@ export const NotificationContainer: FC<NotificationsContainerProps> = (
bounce: 0,
}}
>
<ControlledNotification
notification={n}
controller={controller}
/>
<Suspense>
<ControlledNotification
notification={n}
controller={controller}
/>
</Suspense>
</m.div>
))}
</AnimatePresence>
Expand Down

0 comments on commit 843b8ed

Please sign in to comment.