-
Notifications
You must be signed in to change notification settings - Fork 459
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
fix: Update React Router mentions #1748
Conversation
Hey, here’s your docs preview: https://clerk.com/docs/pr/1748 |
@@ -87,7 +87,7 @@ The `<SignedIn>` component offers authentication checks as a cross-cutting conce | |||
Below is an example of how to use `<SignedIn>` with React Router. The `<SignedIn>` component can be used as a child of a `<Route />` component to render content only to signed in users. | |||
|
|||
```tsx {{ filename: 'app.tsx' }} | |||
import { Routes, Route } from 'react-router-dom' | |||
import { Routes, Route } from 'react-router' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This refers to https://reactrouter.com/upgrading/v6#upgrade-to-v7
@@ -32,7 +32,7 @@ description: Learn how to add React Router to your React application using their | |||
</TutorialHero> | |||
|
|||
> [!WARNING] | |||
> [Loaders](https://reactrouter.com/en/main/route/loader) and [Actions](https://reactrouter.com/en/main/route/action) are currently not supported by Clerk with React Router. | |||
> This tutorial is written for [React Router 6](https://reactrouter.com/6.28.0/home) and doesn't support [loaders](https://reactrouter.com/6.28.0/route/loader) and [actions](https://reactrouter.com/6.28.0/route/action). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the new SDK is out I'll revisit this doc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! thank you lennart :)
Important
🔎 Previews:
Explanation:
Checklist