Skip to content
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

chore(clerk-js): Invalidate Session Verification when UserVerification unmounts #4359

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

panteliselef
Copy link
Member

Description

Invalidate Session Verification on component unmount

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:

@panteliselef panteliselef requested a review from a team October 18, 2024 08:45
@panteliselef panteliselef self-assigned this Oct 18, 2024
Copy link

changeset-bot bot commented Oct 18, 2024

🦋 Changeset detected

Latest commit: 87aa6eb

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

.changeset/fair-avocados-tap.md Outdated Show resolved Hide resolved

const staleTime = options?.staleTime || 1000 * 60 * 2; //cache for 2 minutes by default
const staleTime = options?.staleTime ?? 1000 * 60 * 2; //cache for 2 minutes by default
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ ❓ This could be a possible breaking change! Before it would use 1000 * 60 * 2 for the 0 value.

Copy link
Member Author

Choose a reason for hiding this comment

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

We are not using staleTime 0 so we are safe

Co-authored-by: Stefanos Anagnostou <[email protected]>
@panteliselef panteliselef enabled auto-merge (squash) October 18, 2024 13:06
@panteliselef panteliselef merged commit 1be6dac into main Oct 18, 2024
21 checks passed
@panteliselef panteliselef deleted the elef/user-607-invalidate-stored-verification branch October 18, 2024 13:14
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