Skip to content

Redirect dependant on some variable in makeRouteConfig #857

@Egorzaa

Description

@Egorzaa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions