Skip to content
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

[Bug]: (v7) Layout routes params are generated as an empty object missing actual params #12178

Open
DovydasNavickas opened this issue Oct 23, 2024 · 0 comments
Labels

Comments

@DovydasNavickas
Copy link

What version of React Router are you using?

7.0.0-pre.1

Steps to Reproduce

  1. Clone repo: https://github.com/DovydasNavickas/react-router-layout-bug
  2. Run the project with local typescript version enabled in VS Code for typescript plugin to work.
  3. An error is in file /app/routes/layouts/main.tsx

Expected Behavior

Layout params have route params just as any other route.

Actual Behavior

The layout effectively gets the route params and route params type is generated, but it is empty.

@DovydasNavickas DovydasNavickas changed the title [Bug]: [v7] Layout routes params are generated as an empty object missing actual params [Bug]: (v7) Layout routes params are generated as an empty object missing actual params Oct 23, 2024
@brophdawg11 brophdawg11 added the v7 label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants