Repository navigation
feat(mosaic): add MosaicRoutingProvider and useMosaicRoutes - #9843
Draft
alexcarpenter wants to merge 3 commits into
Draft
alexcarpenter wants to merge 3 commits into
alexcarpenter wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: 794dd96 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-google-signin
@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: |
alexcarpenter
added a commit
that referenced
this pull request
Sep 30, 2026
Six mocked-layer cases repeated what the feature tests drive end to end against the faked FAPI. The SSO feature test now seeds an email_link instance too, so the strategy precedence stays covered where the flow is exercised. Also records why the link redirect is not routing-aware yet (#9843).
3 of 9 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds internal routing for Mosaic, loosely modeled on nanostores/router.
MosaicRoutingProviderdecides where the route lives (the path, the hash, or memory).useMosaicRoutesgives controllers a typed route table.Provider
path: the URL under a base path, navigated throughclerk.navigateas an internal navigation.hash:#/…, never calls the host router (Chrome extension, Electron).memory: never touches the URL (modals). This is also the default with no provider.Routes in a controller
For a full example (a profile-style controller and view under each mode), see
routing/__tests__/usage.test.tsx.Carries over the legacy router's behavior: waits for the host navigation and then commits with
flushSync, converts#/…URLs to paths on mount, ignores URL changes outside the base path or during its own navigation, drops a repeat of a navigation that's already in flight, and keepsPRESERVED_QUERYSTRING_PARAMSacross moves. Nothing toucheswindowat import time, so it's safe for SSR and native.Gaps
@clerk/mosaic, and no component uses it yet.hreffor building links.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change