Fix data persistence issue
Addresses a bug where budget and expense data were not persisting correctly, leading to data loss when navigating between pages.
This commit is contained in:
@@ -64,7 +64,7 @@ export const useBudgetState = () => {
|
||||
};
|
||||
|
||||
// 로컬 이벤트 발생 (다른 컴포넌트에서 변경 감지하도록)
|
||||
window.dispatchEvent(new Event('categoryBudgetsUpdated'));
|
||||
window.dispatchEvent(new Event('budgetDataUpdated'));
|
||||
}, [categoryBudgets, budgetData]);
|
||||
|
||||
// 모든 데이터 리셋 함수
|
||||
|
||||
Reference in New Issue
Block a user