Skip to content

Conversation

@panteliselef
Copy link
Contributor

@panteliselef panteliselef commented Jan 3, 2024

Description

This PR fixes a bug which would make the useOrganization with the invitations param to work unexpectedly.

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:

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

@panteliselef panteliselef self-assigned this Jan 3, 2024
@changeset-bot
Copy link

changeset-bot bot commented Jan 3, 2024

🦋 Changeset detected

Latest commit: 470ab5a

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

This PR includes changesets to release 12 packages
Name Type
@clerk/shared Patch
@clerk/backend Patch
@clerk/chrome-extension Patch
@clerk/clerk-js Patch
@clerk/elements Patch
@clerk/clerk-expo Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/clerk-react Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
gatsby-plugin-clerk 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

@panteliselef panteliselef requested a review from dimkl January 3, 2024 19:49
'@clerk/shared': patch
---

Bug fix: Invitations from useOrganization depends on options of membership.}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Bug fix: Invitations from useOrganization depends on options of membership.}
Fixes a bug where Invitations from `useOrganization` incorrectly depended on options for memberships.

Copy link
Contributor

@dimkl dimkl left a 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?

@panteliselef panteliselef enabled auto-merge January 4, 2024 11:49
@panteliselef panteliselef added this pull request to the merge queue Jan 4, 2024
Merged via the queue into main with commit 38d8b3e Jan 4, 2024
@panteliselef panteliselef deleted the elef/fix-wrong-variable branch January 4, 2024 12:03
panteliselef added a commit that referenced this pull request Jan 4, 2024
…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)
github-merge-queue bot pushed a commit that referenced this pull request Jan 4, 2024
…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 <panteliselef@outlook.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.

5 participants