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

<Route to /> will not match the path #22

Open
MakhBeth opened this issue Dec 13, 2021 · 1 comment
Open

<Route to /> will not match the path #22

MakhBeth opened this issue Dec 13, 2021 · 1 comment

Comments

@MakhBeth
Copy link

I have this situation:

<Route to={router.example} render={...} />
will render a
<OriginalRoute render={...} /> component

To have my <Switch /> to work as expected I had to write down:

<Route path={router.example().fullTemplate} render={...} />

I think that's something on props overwrite? I'm importing the wrong module?

@MakhBeth
Copy link
Author

Maybe is something about: https://github.com/remix-run/react-router/blob/46c4c530e0ba1d159ea11310f4c5bdad8da80322/packages/react-router/modules/Switch.js#L68

Obviously, the clone stuff won't work wrapping a Route :\

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

No branches or pull requests

1 participant