How to end interaction silently? #2317
Closed
sahilsuman933
started this conversation in
General
Replies: 2 comments
-
defer is not for silencing but in normal cases u should give the user feedback |
Beta Was this translation helpful? Give feedback.
0 replies
-
There are a few ways to silently ignore a component interaction, such as using If you have any follow-up comments, please use the support server for coding help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a select menu followed by a confirmation button. When I choose an option from the menu, I want to store its value in a variable. Then, when I click the confirm button, a specific action needs to be performed.
However, currently, if I don't provide any interaction response, the whole process enters a loading stage, and afterwards, I am unable to select anything. To temporarily resolve this issue, I found that using the defer method puts the interaction state into a thinking state for a few seconds, allowing me to select the confirm button and have it work correctly.
Issue: I don't want the loading state because it freezes the confirmation button for 1-2 seconds. Is there any way to prevent this?
Code:
Issue Screenshot:
Beta Was this translation helpful? Give feedback.
All reactions