Redirect dependant on some variable in makeRouteConfig
Egorzaa opened this issue · 0 comments
Egorzaa commented
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?