Skip to content

Why is redirect not working here #11000

Closed Answered by brophdawg11
SyedImam1998 asked this question in Q&A
Discussion options

You must be logged in to vote

redirect is a utility function for use in loaders and actions as the docs state, it is not meant for navigating in the component lifecycle. You need to use navigate to navigate from the component lifecycle.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@IDONTSUDO
Comment options

@brophdawg11
Comment options

Answer selected by brophdawg11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants