Skip to content

fix(elements): Fix follow-on initialization discrepancies - #3377

Merged
tmilewski merged 4 commits into
elements/complete-stepfrom
elements/fix-follow-on-initialization
May 13, 2024
Merged

fix(elements): Fix follow-on initialization discrepancies#3377
tmilewski merged 4 commits into
elements/complete-stepfrom
elements/fix-follow-on-initialization

Conversation

@tmilewski

@tmilewski tmilewski commented May 13, 2024

Copy link
Copy Markdown
Member

Description

This is an addendum to the sign in/sign up updates seen in #3343.

This PR does the following:

  • Removes the need to transition to an alternate "Complete" state when using .setActive. The machine retains the current state throughout the setActive flow and resets after that's done.
  • Fixes the Sign In/Sign Up machine not appropriately attaching new form machines, thus breaking the flow.
  • Stops the STRATEGY.UNREGISTER event from being called on stopped machines.

Fixes SDK-1746

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:

@tmilewski tmilewski self-assigned this May 13, 2024
@changeset-bot

changeset-bot Bot commented May 13, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3d4491b

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

This PR includes changesets to release 1 package
Name Type
@clerk/elements 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

Comment thread packages/elements/src/react/sign-in/verifications.tsx
Comment thread packages/elements/src/react/sign-in/root.tsx
@tmilewski
tmilewski merged commit a60c229 into elements/complete-step May 13, 2024
@tmilewski
tmilewski deleted the elements/fix-follow-on-initialization branch May 13, 2024 21:19
LekoArts added a commit that referenced this pull request May 14, 2024
* chore(elements): Add changeset

* Apply suggestions from code review

Co-authored-by: Bryce Kalow <bryce@clerk.dev>

* feat(elements): Add `complete` step to Sign Up and Sign In. [SDK-1712]

* chore(elements): Remove comment

* chore(elements): Remove complete step

* chore(elements): Update sign-in Step docs

* fix(elements): Fix follow-on initialization discrepancies (#3377)

* fix(elements): Follow-on machine initialization [SDK-1746]

* chore(elements): Add changeset

* chore(elements): Remove unnecessary TS comment

* chore(elements): Add line item to changeset

* chore(repo): Update changeset

---------

Co-authored-by: Bryce Kalow <bryce@clerk.dev>
Co-authored-by: LekoArts <lekoarts@gmail.com>
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.

2 participants