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

use useSelector with granular approach in registration component to minimize rendering #1207

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

mubbsharanwar
Copy link
Contributor

Description

In this PR we are optimizing the registration component by using reducer state more granular which helps to minimize the component rendering on dependent state change along with following best practices.

Docs: Selectors should be as granular as possible
Reference: https://react-redux.js.org/api/hooks

JIRA

VAN-1890

How Has This Been Tested?

Locally

@mubbsharanwar mubbsharanwar force-pushed the manwar/VAN-1890 branch 2 times, most recently from 22bebd6 to 1400227 Compare March 26, 2024 10:42
Copy link
Contributor

@syedsajjadkazmii syedsajjadkazmii left a comment

Choose a reason for hiding this comment

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

Please confirm if its tested thoroughly

@mubbsharanwar
Copy link
Contributor Author

mubbsharanwar commented Mar 28, 2024

Please confirm if its tested thoroughly

Yes, I tested it on success, failure, backend validations, username suggestions, SSO, state persists, etc cases.

@mubbsharanwar mubbsharanwar marked this pull request as ready for review April 1, 2024 05:38
@mubbsharanwar mubbsharanwar requested a review from a team as a code owner April 1, 2024 05:38
@mubbsharanwar mubbsharanwar merged commit cd84744 into master Apr 1, 2024
5 checks passed
@mubbsharanwar mubbsharanwar deleted the manwar/VAN-1890 branch April 1, 2024 05:42
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.

2 participants