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:
gpt-engineer-app[bot]
2025-03-16 06:41:57 +00:00
parent c23f5cddef
commit 16c17f0257
9 changed files with 135 additions and 37 deletions

View File

@@ -64,7 +64,7 @@ export const useBudgetState = () => {
};
// 로컬 이벤트 발생 (다른 컴포넌트에서 변경 감지하도록)
window.dispatchEvent(new Event('categoryBudgetsUpdated'));
window.dispatchEvent(new Event('budgetDataUpdated'));
}, [categoryBudgets, budgetData]);
// 모든 데이터 리셋 함수