Open fenok opened 2 days ago
7.0.1
In an app that uses React Router as a framework (I used create-react-router@latest), define routes like this:
create-react-router@latest
export default [route('/:a', 'routes/page.tsx', [route('/:a/:b', 'routes/subpage.tsx')])] satisfies RouteConfig;
In real life, paths are built by a separate tool, and this approach is more convenient.
import type { Route } from "./+types/subpage"; // Should be { a: string; b: string } type Params = Route.MetaArgs['params'];
import type { Route } from "./+types/subpage"; // Actually it's { a: [ string, string ]; b: string } type Params = Route.MetaArgs['params'];
What version of React Router are you using?
7.0.1
Steps to Reproduce
In an app that uses React Router as a framework (I used
create-react-router@latest
), define routes like this:In real life, paths are built by a separate tool, and this approach is more convenient.
Expected Behavior
Actual Behavior