-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(shared): Invitations depends on wrong options (useOrganization) #2472
Conversation
🦋 Changeset detectedLatest commit: 470ab5a The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
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 |
.changeset/thirty-cooks-cheer.md
Outdated
'@clerk/shared': patch | ||
--- | ||
|
||
Bug fix: Invitations from useOrganization depends on options of membership.} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug fix: Invitations from useOrganization depends on options of membership.} | |
Fixes a bug where Invitations from `useOrganization` incorrectly depended on options for memberships. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this bug indicates that we have no test coverage over this part of the codebase. Could we introduce a unit test for this?
…2472) (#2481) * fix(shared): Invitations depends on wrong options (useOrganization) (#2472) * fix(shared): Invitations depends on wrong options (useOrganization) * fix(shared): Invitations is depending on wrong options * test(clerk-js): Add unit test * chore(clerk-js): Update changeset (cherry picked from commit 38d8b3e) * fix(clerk-js): Use useCoreOrganization --------- Co-authored-by: panteliselef <[email protected]>
Description
This PR fixes a bug which would make the
useOrganization
with theinvitations
param to work unexpectedly.Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change
Packages affected
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/clerk-expo
@clerk/fastify
gatsby-plugin-clerk
@clerk/localizations
@clerk/nextjs
@clerk/clerk-react
@clerk/remix
@clerk/clerk-sdk-node
@clerk/shared
@clerk/themes
@clerk/types
build/tooling/chore