-
Notifications
You must be signed in to change notification settings - Fork 290
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
Conversation
🦋 Changeset detectedLatest commit: bc50696 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen 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 |
.changeset/pretty-mice-share.md
Outdated
'@clerk/clerk-js': patch | ||
--- | ||
|
||
Internal cleanup from errors in console regarding `act()`. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
b64e8cf
to
bc50696
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
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.Type of change
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