diff options
Diffstat (limited to 'packages/web-util/src/hooks')
-rw-r--r-- | packages/web-util/src/hooks/useNotifications.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web-util/src/hooks/useNotifications.ts b/packages/web-util/src/hooks/useNotifications.ts index 52e626b38..2f9df24f9 100644 --- a/packages/web-util/src/hooks/useNotifications.ts +++ b/packages/web-util/src/hooks/useNotifications.ts @@ -53,7 +53,7 @@ export function useNotifications(): Notification[] { useEffect(() => { return storage.onUpdate(NOTIFICATION_KEY, () => { const mem = storage.get(NOTIFICATION_KEY) ?? new Map(); - setter(mem); + setter(structuredClone(mem)); }); }); |