Repository navigation
fix(mosaic,shared): clear cached device sessions after sign-out - #10555
austincalvelage wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 2451528 The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 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 |
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
bc4f8bb to
27feecb
Compare
API Changes Report
Summary
@clerk/sharedCurrent version: 4.43.1 Subpath
|
27feecb to
b391eaa
Compare
b391eaa to
fc47da2
Compare
fc47da2 to
2451528
Compare
Description
Fixes CORE-4131.
Closing Active Devices before signing out left session and IP data in the shared query cache. Register cleanup with the persistent query client so confirmed sign-out removes those entries even after the section unmounts. Undefined auth state preserves the cache, and existing billing cleanup keeps its current behavior.
This changes in-memory cache cleanup, with no visible change to the Mosaic UI. The cache still survives closing and reopening Active Devices while signed in. Confirmed sign-out removes it even if the section has already unmounted.
Verified before and after in Chromium with a real Clerk instance and synthetic Frontend API responses: mount Active Devices, populate the cache, unmount, then sign out. Before the fix, the query still held session and IP data. After the fix, the original query entry was absent from the same persistent client. The mounted sign-out control also passes. Shared tests cover undefined auth, repeated registration, listener disposal, and late request completion.
Checklist
pnpm testruns as expected for the affected suites: all 1,357 shared tests, 2,959 legacy UI tests, 1,296 Clerk runtime tests, and 30 active-device browser tests pass.pnpm buildruns as expected. The shared and legacy UI production builds and affected typechecks pass; the full monorepo build was not run.Type of change