Skip to content

Commit

Permalink
add: help comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosei805 committed Nov 19, 2024
1 parent 129372e commit 37d0c2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/app/routes/home.users.create/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const UserCreatePage = () => {
setCounts(counts - 1);
}
}, 1000);
// コンポーネントがアンマウントした時、タイマーをクリアする
return () => clearInterval(countDown);
}, [counts]);

Expand Down

0 comments on commit 37d0c2d

Please sign in to comment.