do not reuse the same map instance
This commit is contained in:
parent
ae49194d42
commit
fd9ed97fdc
@ -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));
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user