Skip to content

Conversation

@alexcarpenter
Copy link
Member

@alexcarpenter alexcarpenter commented Dec 4, 2024

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.id being 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 test runs as expected.
  • pnpm 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:

@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2024

🦋 Changeset detected

Latest commit: c3f3b76

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

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

@vercel
Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 6:45pm

'@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.
Copy link
Member

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 ?

Copy link
Member Author

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

Copy link
Member Author

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.

Copy link
Member Author

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

Copy link
Member

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

@alexcarpenter alexcarpenter marked this pull request as ready for review December 4, 2024 19:29
@alexcarpenter alexcarpenter requested review from a team and panteliselef December 4, 2024 19:29
Copy link
Member

@jacekradko jacekradko left a 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.
Copy link
Member

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

@alexcarpenter alexcarpenter merged commit 8cdfa8f into main Dec 5, 2024
27 checks passed
@alexcarpenter alexcarpenter deleted the alexcarpenter/sdki-785-signup-navigation-happening-unintentionally-during-continue branch December 5, 2024 15: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