Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove keystroke updates to Redux on Login page #989

Merged
merged 4 commits into from
Dec 2, 2020

Conversation

liangyuanruo
Copy link
Contributor

Problem

Closes #955

Solution

Login component state management of email and OTP is now managed by useState hooks. The user's email is populated in Redux only upon successful login.

Other minor code improvements were also carried out, such as separating the useEffect hooks of login glob validation from that of fetching the login page message.

Unused Redux actions and reducers have been removed.

@liangyuanruo liangyuanruo requested a review from yong-jie December 1, 2020 03:43
Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@liangyuanruo liangyuanruo merged commit c4969b8 into develop Dec 2, 2020
@liangyuanruo liangyuanruo deleted the refactor/login-redux branch December 2, 2020 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decouple login form input from Redux
2 participants