Skip to content

What's the right way to navigate from a handler (not from a component) #97

Closed
@uriva

Description

@uriva

iiuc, you can't use useLocation().route in a then inside a useEffect

so what is the recommended way to do routing in this scenario?

would location.href = ... work?

it might be nice to have a route function which just figures out what to use by itself, if this is possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions