-
Notifications
You must be signed in to change notification settings - Fork 271
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
react-router
v7 compatibility
#4641
Comments
We are working on a new sdk specific for react router |
Just to give an update here, I'm awaiting feedback on an issue I filed at the Remix repository: remix-run/react-router#12399 (there were holidays in America so waiting time is expected). Once that's fixed I'm positive that a Beta release won't take long afterwards. |
Hello folks, since the issue mentioned above was fixed I was able to update the PR. You could give this version a try: npm install @clerk/[email protected] --save-exact Inside your import { rootAuthLoader } from "@clerk/react-router/ssr.server";
import { ClerkProvider, SignedIn, SignedOut, UserButton, SignInButton } from "@clerk/react-router";
export async function loader(args: Route.LoaderArgs) {
return rootAuthLoader(args)
}
export default function App({ loaderData }: Route.ComponentProps) {
return (
<ClerkProvider loaderData={loaderData}>
<header className="flex items-center justify-center py-8 px-4">
<SignedOut>
<SignInButton />
</SignedOut>
<SignedIn>
<UserButton />
</SignedIn>
</header>
<main>
<Outlet />
</main>
</ClerkProvider>
);
} The full docs are being worked on here: clerk/clerk-docs#1760 |
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://unfortunately-not-available
Publishable key
pk_test_not_relevant_to_the_question
Description
@clerk/remix
has a peer dependency on@remix-run/react
.A couple of days ago, React Router v7 was released, which is the recommended migration path for Remix apps. However,
@clerk/remix
is not compatible with RR v7 due to the aforementioned peer dependency, and the React Router section of the Clerk docs mention thatSo this is a friendly request to make Clerk compatible with RRv7.
Thanks!
Environment
The text was updated successfully, but these errors were encountered: