fix(clerk-js): Only reload client if session is not present#7103
fix(clerk-js): Only reload client if session is not present#7103dstaley merged 1 commit intovincent-and-the-doctorfrom
Conversation
🦋 Changeset detectedLatest commit: 08d831d 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
Description
This PR updates the call to
client.reload()duringsignIn.finalize()to only be called if thecreatedSessionIdis not present inclient.sessions. This eliminates unnecessary calls toclient.reload()when the created session is already present.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change