Call a function after a Dialog closes with a Tailwind animation #7139
-
I'm currently working with the React Aria Tailwind Starter and React Router. All the components in this collection use I'm rendering the How would this be accomplished with React Aria? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I would use setTimeout to execute the setTimeout(() => {
navigate("/new-post");
}, 200); |
Beta Was this translation helpful? Give feedback.
I would use setTimeout to execute the
navigate()
function after a specified amount of time (i.e. 200ms for the tailwind starters)