Problem
The login button on /dashboard has no disabled state or spinner while the authentication request is in flight. Users can click it multiple times and fire duplicate requests.
Suggested fix
Track a loading state during handleLogin, disable the button and show a spinner while the request is pending.
Problem
The login button on
/dashboardhas no disabled state or spinner while the authentication request is in flight. Users can click it multiple times and fire duplicate requests.Suggested fix
Track a
loadingstate duringhandleLogin, disable the button and show a spinner while the request is pending.