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

test(clerk-js): Clean up act() errors #1990

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Conversation

panteliselef
Copy link
Member

Description

This PR removes console errors regarding the usage of act() while tests are running.

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 LekoArts and a team October 31, 2023 19:22
Copy link

changeset-bot bot commented Oct 31, 2023

🦋 Changeset detected

Latest commit: bc50696

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

@panteliselef panteliselef self-assigned this Oct 31, 2023
@panteliselef panteliselef changed the title feat(clerk-js,types): Fetch custom roles and localize them test(clerk-js): Clean up act() errors Oct 31, 2023
'@clerk/clerk-js': patch
---

Internal cleanup from errors in console regarding `act()`.
Copy link
Member

Choose a reason for hiding this comment

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

Users wouldn't really care about that, but you changed some functionality in the component that people use. Maybe explain that instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

@LekoArts Customers are not affected by the other change either, i'm converting this to an empty changeset

@@ -263,15 +264,15 @@ export const FormFeedback = (props: FormFeedbackProps) => {
export const FormControl = forwardRef<HTMLInputElement, PropsWithChildren<FormControlProps>>((props, ref) => {
const { t } = useLocalizations();
const card = useCardState();
const [isFocused, setIsFocused] = useState(false);
// const [isFocused, setIsFocused] = useState(false);
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove this dead code completely if not needed anymore

@panteliselef panteliselef force-pushed the elef/SDK-856-act-errors branch from b64e8cf to bc50696 Compare November 1, 2023 10:02
@panteliselef panteliselef requested a review from LekoArts November 1, 2023 10:03
@panteliselef panteliselef added this pull request to the merge queue Nov 1, 2023
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.

🚀

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 1, 2023
@LekoArts LekoArts added this pull request to the merge queue Nov 1, 2023
Merged via the queue into main with commit d55d9e1 Nov 1, 2023
7 checks passed
@LekoArts LekoArts deleted the elef/SDK-856-act-errors branch November 1, 2023 11:14
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.

4 participants