Skip to content

Call a function after a Dialog closes with a Tailwind animation #7139

Discussion options

You must be logged in to vote

I would use setTimeout to execute the navigate() function after a specified amount of time (i.e. 200ms for the tailwind starters)

setTimeout(() => {
  navigate("/new-post");
}, 200);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jordanthornquest
Comment options

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