Skip to content

feature request: support react-router v7 #964

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

Open
mattzque opened this issue May 19, 2025 · 0 comments
Open

feature request: support react-router v7 #964

mattzque opened this issue May 19, 2025 · 0 comments

Comments

@mattzque
Copy link

What problem did you meet?

I'm using react-router 7.6.0 in framework mode, but there is no SDK available for it.

Describe what you'd like Logto to have

Support for react-router v7 framework mode.

This is pretty much exactly the same as the remix package, just the imports are different, Remix version 3 basically is react-router v7 in framework mode now: https://remix.run/blog/incremental-path-to-react-19

As a workaround I just copied the remix package and renamed all the imports, I pushed a version of it here that seems to work perfectly: mattzque@c221be9

In the commit I search & replaced the import @remix-run/node with react-router, the only incompatibility I've found is a missing TypedResponse that I just replaced with Response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants