Skip to content

fix(clerk-js): Revalidate when user deletes organization#2473

Merged
panteliselef merged 1 commit intomainfrom
elef/SDK-1144
Jan 4, 2024
Merged

fix(clerk-js): Revalidate when user deletes organization#2473
panteliselef merged 1 commit intomainfrom
elef/SDK-1144

Conversation

@panteliselef
Copy link
Copy Markdown
Contributor

@panteliselef panteliselef commented Jan 3, 2024

Description

Since we increased the time-to-stale duration we've been having a few caching issues with the fetched resources and their respective UI.

This PR solves those issues, by requesting a revalidation when a user deletes, leaves or creates an organization. The cases for accepting/rejecting invitations & suggestions should already be handled.

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

We also need to revalidate when user creates an organization, and when user is leaving an organization
@panteliselef panteliselef requested a review from octoper January 3, 2024 19:34
@panteliselef panteliselef self-assigned this Jan 3, 2024
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 3, 2024

🦋 Changeset detected

Latest commit: 764b014

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

@octoper
Copy link
Copy Markdown
Member

octoper commented Jan 3, 2024

!preview

@clerk-cookie
Copy link
Copy Markdown
Collaborator

clerk-cookie commented Jan 3, 2024

Hey @octoper, your preview is available.

Status Preview Updated (UTC)
🍪 Deployed Visit preview Jan 03, 2024 07:39 PM

@panteliselef panteliselef added this pull request to the merge queue Jan 4, 2024
Merged via the queue into main with commit 846a4c2 Jan 4, 2024
@panteliselef panteliselef deleted the elef/SDK-1144 branch January 4, 2024 13:15
github-merge-queue Bot pushed a commit that referenced this pull request Jan 8, 2024
* fix(clerk-js): Revalidate when user deletes organization (#2473)

* fix(clerk-js): Fix issues after resolving conflicts
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.

3 participants