clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
955 stars 210 forks source link

feat(ui): Extract some logic into reusable hooks #3614

Closed alexcarpenter closed 2 weeks ago

alexcarpenter commented 2 weeks ago

Description

Introduce three new hooks based on current usage across <SignIn /> <SignUp /> components:

Currently I am just updating the usage within the sign-in/up flows. Likely in a follow up PR we may refactor the common components to access this data internally using these hooks vs needing to pass the data in as props within the sign-in/up components.

Checklist

Type of change

changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

Latest commit: 247a10ff1a8635b6d6e31bfa82d2dccef134efc0

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