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:
![image](https://private-user-images.githubusercontent.com/34382211/296615229-529bfa52-39be-43bc-bec5-1d30b6fbfa39.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxMTM2MDQsIm5iZiI6MTcyMDExMzMwNCwicGF0aCI6Ii8zNDM4MjIxMS8yOTY2MTUyMjktNTI5YmZhNTItMzliZS00M2JjLWJlYzUtMWQzMGI2ZmJmYTM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA0VDE3MTUwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTViNzhjNWM3NjlkMjI5YzJjOWIwYjc1OWI5NjkyZDE2NjY0ZDAyYWY0NjkxNzI5NjRhYzI1NjI4NTMyMjBjMGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ix_336sTvoDKLIAqq72Wi6eHmaURO4-eYOTm3KJ2C0g)
Beta Was this translation helpful? Give feedback.
All reactions