diff --git a/frontend/app/routes/home.users.create/route.tsx b/frontend/app/routes/home.users.create/route.tsx index 05709eda..c0dfa38f 100644 --- a/frontend/app/routes/home.users.create/route.tsx +++ b/frontend/app/routes/home.users.create/route.tsx @@ -108,6 +108,7 @@ const UserCreatePage = () => { setCounts(counts - 1); } }, 1000); + // コンポーネントがアンマウントした時、タイマーをクリアする return () => clearInterval(countDown); }, [counts]);