Improve data reset flow

The settings page was reloading slowly after a data reset. This commit addresses the issue by preventing the unnecessary reload after the reset operation.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-18 02:07:27 +00:00
parent 00727c8ab6
commit 0be5154e02
4 changed files with 46 additions and 46 deletions

View File

@@ -124,8 +124,8 @@ export const useDataReset = () => {
console.log('모든 데이터 초기화 완료');
// 초기화 후 설정 페이지로 이동 (타임아웃으로 약간 지연)
setTimeout(() => navigate('/settings'), 500);
// 페이지 리프레시 대신 navigate 사용 (딜레이 제거)
navigate('/settings', { replace: true });
return { isCloudResetSuccess: cloudResetSuccess };
} catch (error) {