react-router
react-router copied to clipboard
[Bug]: (v7) Layout routes params are generated as an empty object missing actual params
What version of React Router are you using?
7.0.0-pre.1
Steps to Reproduce
- Clone repo: https://github.com/DovydasNavickas/react-router-layout-bug
- Run the project with local typescript version enabled in VS Code for typescript plugin to work.
- 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.