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

fix(clerk-js): Avoid debouncing feedback twice #2219

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

panteliselef
Copy link
Member

@panteliselef panteliselef commented Nov 28, 2023

Description

Previously we were incorrectly populating FormFieldContext with the debounced feedback and feedbackType.

Now this is handled internally inside FormFieldProvider and we support both the regular state and the debounced state of feedback.

This is needed because parts UI needs to immediately know if a field has an error (e.g. disabling a button), where as other parts (e.g. FormField) depends on the debounced state in order to deliver a better UX

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@panteliselef panteliselef requested review from desiprisg and a team November 28, 2023 12:43
@panteliselef panteliselef self-assigned this Nov 28, 2023
Copy link

changeset-bot bot commented Nov 28, 2023

🦋 Changeset detected

Latest commit: b97cf6f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@desiprisg desiprisg left a comment

Choose a reason for hiding this comment

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

💯

Copy link
Contributor

@dimkl dimkl left a comment

Choose a reason for hiding this comment

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

🔧 Could you please add a description to the PR?

@nikosdouvlis nikosdouvlis merged commit af56f51 into main Nov 28, 2023
7 checks passed
@nikosdouvlis nikosdouvlis deleted the elef/fix-field-feedback branch November 28, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants