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

React Router render own Component which returns dynamic Routes #3512

Closed
aight8 opened this issue Jun 4, 2016 · 1 comment
Closed

React Router render own Component which returns dynamic Routes #3512

aight8 opened this issue Jun 4, 2016 · 1 comment

Comments

@aight8
Copy link

aight8 commented Jun 4, 2016

I have something like this:

<Router>
   {myRoutesComponent}
</Router>

myRoutesComponent is a custom Element which returns a main Route and some child Routes. The component is connected with redux with connect. This because the routes can change over time.

But that's not working! The myRoutesComponent is not rendered at all - so no routes are initialized.

Why it's not working this way?

ps: I don't want to use the react-route dynamic url functionality. I want to define all routes by myself but dynamically based on redux data.

@taion taion added the duplicate label Jun 4, 2016
@taion
Copy link
Contributor

taion commented Jun 4, 2016

#2182

@taion taion closed this as completed Jun 4, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants