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

Update SignupForm.jsx #3256

Closed

Conversation

sudhanshutiwary69868
Copy link

@sudhanshutiwary69868 sudhanshutiwary69868 commented Oct 24, 2024

Added a debouncing logic so as to handle multiple requests

Fixes #3256

Changes:Created a debouncing logic

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

Added a debouncing logic so as to  handle multiple requests
Copy link

welcome bot commented Oct 24, 2024

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

return asyncValidate('username', username);
}
clearTimeout(timeout)
let timeout= setTimeout(function(){
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't want a let here because that will create a separate timeout variable that is scoped to within the body of the validateUsername function, rather than re-using the one that you declared outside the function body.

@raclim
Copy link
Collaborator

raclim commented Nov 18, 2024

Thanks so much for your work on this! Since it's been a while since there were any changes here, I'm going to close this for now, but please feel free to reopen a new PR if you would like to revisit this with any updates, or check out our other issues!

@raclim raclim closed this Nov 18, 2024
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.

3 participants