Skip to content

DropdownMenu.Item: Handle async functionality onClick #220

Answered by blvdmitry
ForrestCogna asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, you can do this with the controlled component behavior. DropdownMenu supports an active flag which you can change after the promise is resolved based on your own useState

Replies: 2 comments 2 replies

Comment options

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

Answer selected by ForrestCogna
Comment options

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

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