I have toggles in my app that communicate with the backend. Is it bad to show a loader on click of the button until you have a response? It somehow doesn't feel right.
Is it an option to just switch it on and if it fails turn it back to off? That also doesn't seem right to me since it might make the user feel frustrated.
Am I not supposed to use toggles for something awaiting a response from the backend?
response
from the backend has anything to do with the user ? Do you need to show any updated data ? as @MikeM already mentioned, please provide a mock/simple visual for community members to understand what happens once the response is received from the backend.