-
Notifications
You must be signed in to change notification settings - Fork 405
fix(clerk-js): Move signup id check into an effect within continue step #4711
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): Move signup id check into an effect within continue step #4711
Conversation
🦋 Changeset detectedLatest commit: c3f3b76 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| '@clerk/clerk-js': patch | ||
| --- | ||
|
|
||
| Fixes an issue during sign-up flow where a user lands on the continue step, and proceeds successfully through the sign-up process and gets redirected to AP sign-up due to signUp.id being undefined. |
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.
i'm a bit confused by this. I don't see how the useEffect solves the issue.
could you post a before/after video of the interactions ?
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.
Here is the issue currently present.
Screen.Recording.2024-12-04.at.1.14.03.PM.mov
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.
The SignUpContinue component seems to be rerendering causing signup.id to be undefined which triggers the navigation to AP. Chatting with @brkalow it seems to stem from onBeforeSetActive causing the component to re-render.
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.
@panteliselef added before/after to description
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.
thanks for providing these, i appreciate it. I can see how onBeforeSetActive could affect things
jacekradko
left a comment
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.
👍🏼
| '@clerk/clerk-js': patch | ||
| --- | ||
|
|
||
| Fixes an issue during sign-up flow where a user lands on the continue step, and proceeds successfully through the sign-up process and gets redirected to AP sign-up due to signUp.id being undefined. |
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.
thanks for providing these, i appreciate it. I can see how onBeforeSetActive could affect things
Description
Fixes an issue during sign-up flow where a user lands on the continue step, and proceeds successfully through the sign-up process and gets redirected to AP sign-up due to
signUp.idbeing undefined.BEFORE:
Screen.Recording.2024-12-04.at.1.14.03.PM.mov
AFTER:
Screen.Recording.2024-12-04.at.1.39.48.PM.mov
Fixes SDKI-785
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change