frontend 성능 개선

This commit is contained in:
Macbook
2026-06-08 15:25:44 +09:00
parent a84a11e21c
commit 011059f5ed
14 changed files with 258 additions and 37 deletions
@@ -638,7 +638,7 @@ export const TradeNotificationProvider: React.FC<ProviderProps> = ({
setDetailCentered(false);
}, []);
const value: TradeNotificationContextValue = {
const value = useMemo<TradeNotificationContextValue>(() => ({
toastNotifications,
allNotifications,
unreadCount,
@@ -657,7 +657,26 @@ export const TradeNotificationProvider: React.FC<ProviderProps> = ({
detailCentered,
openDetail,
closeDetail,
};
}), [
toastNotifications,
allNotifications,
unreadCount,
addNotification,
dismissToast,
dismissToasts,
dismissAllToasts,
markAsRead,
markAllAsRead,
deleteNotification,
deleteNotifications,
deleteUnreadNotifications,
deleteAllNotifications,
refreshHistory,
detailSignal,
detailCentered,
openDetail,
closeDetail,
]);
return (
<TradeNotificationContext.Provider value={value}>