Skip to content

Commit

Permalink
fix(Notification): Add Suspense to NotificationContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Auf dem Kampe committed Nov 25, 2024
1 parent 9abd015 commit 22b6068
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 22b6068

Please sign in to comment.