Skip to content

Remove remix use react router v7#297

Merged
Yosuke Enokida (xenolay) merged 6 commits intomainfrom
remove-remix-use-react-router-v7
Apr 13, 2026
Merged

Remove remix use react router v7#297
Yosuke Enokida (xenolay) merged 6 commits intomainfrom
remove-remix-use-react-router-v7

Conversation

@xenolay
Copy link
Copy Markdown
Contributor

client-ui を Remix v2 から React Router v7 へ移行する。

Remix v2 は maintenance mode に入っており、移行先として React Router v7 が公式にガイドされている。

Yosuke Enokida (xenolay) and others added 5 commits April 9, 2026 13:29
Replace @remix-run/* packages with react-router, @react-router/dev,
@react-router/fs-routes, and @react-router/serve. Update all imports,
vite config, and add app/routes.ts for file-based routing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace the naive event-listener implementation of createReadableStreamFromReadable
with Node.js's built-in Readable.toWeb(), which correctly handles backpressure,
pause/resume, and cancellation to avoid unbounded memory buffering during streaming SSR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add @react-router/node dependency and import createReadableStreamFromReadable
from it, replacing the manual Readable.toWeb() approach.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add .react-router/ to .gitignore (generated directory)
- Update README.md tech stack from Remix to React Router v7
- Update singleton.ts comment URL to React Router docs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace deprecated MetaArgs.data with MetaArgs.loaderData in all routes
- Merge duplicate react-router imports in root.tsx
- Exclude .react-router/ generated directory from eslint

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@xenolay Yosuke Enokida (xenolay) marked this pull request as ready for review April 13, 2026 02:02
@xenolay Yosuke Enokida (xenolay) requested a review from a team as a code owner April 13, 2026 02:02
- Add rootDirs: [".", "./.react-router/types"] to tsconfig.json so tsc
  can resolve generated route type files after react-router build/dev
- Move @react-router/serve from devDependencies to dependencies since
  react-router-serve is used at runtime by the start script

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@xenolay Yosuke Enokida (xenolay) merged commit faf36cc into main Apr 13, 2026
3 checks passed
@xenolay Yosuke Enokida (xenolay) deleted the remove-remix-use-react-router-v7 branch April 13, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant