Skip to content

Conversation

@panteliselef
Copy link
Contributor

@panteliselef panteliselef commented Mar 4, 2025

Description

Update has from useAuth() to always be a function.
Previously has would be undefined when isLoaded:false, now it will be a function that always returns false.

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 Mar 4, 2025

🦋 Changeset detected

Latest commit: 45cb56e

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

This PR includes changesets to release 22 packages
Name Type
@clerk/astro Minor
@clerk/clerk-react Minor
@clerk/types Minor
@clerk/vue Minor
@clerk/chrome-extension Patch
@clerk/elements Patch
@clerk/clerk-expo Patch
@clerk/nextjs Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-start Patch
@clerk/agent-toolkit Patch
@clerk/backend Patch
@clerk/clerk-js Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/localizations Patch
@clerk/nuxt Patch
@clerk/shared Patch
@clerk/testing Patch
@clerk/themes 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 Mar 4, 2025

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 Mar 4, 2025 11:05am

@panteliselef panteliselef changed the title chore(react,astro,vue): Always define has from useAuth chore(clerk-react,astro,vue): Always define has from useAuth Mar 4, 2025
@panteliselef panteliselef requested review from a team, LekoArts and wobsoriano March 4, 2025 11:06
@panteliselef panteliselef self-assigned this Mar 4, 2025
Copy link
Member

@wobsoriano wobsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet

@panteliselef
Copy link
Contributor Author

Although controversial, this change might be breaking for developer that rely on has being undefined to infer isLoaded:true, hence we will be cancelling and introducing this on major.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants