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

Redirect dependant on some variable in makeRouteConfig #857

Open
Egorzaa opened this issue Sep 15, 2021 · 0 comments
Open

Redirect dependant on some variable in makeRouteConfig #857

Egorzaa opened this issue Sep 15, 2021 · 0 comments

Comments

@Egorzaa
Copy link

Egorzaa commented Sep 15, 2021

I want to do smth like that in makeRouteConfig:

<Redirect from="baz" to={ someVar ?"/foo" : "anotherRoute"} />

also I want to select this data from Redux store using useSelector

For example I can't get how to do it here: https://github.com/4Catalyzer/found/blob/master/examples/basic-jsx/src/index.js#L65%D1%8A

How to do it?

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