These are chat archives for canjs/canjs
Looking for advice here:
Here is a simplified example of something in an app I am working on
It’s basically a checkbox, that has to make a service call to change some state.
What’s potrayed in the pen is sort of what is hapenning now in the app (though in the example it errors on the 11th request), you click the checkbox, but the state doesn’t change until the request finishes. On error it doesn’t successfully change. The problems is UX related, for example if you hammer it twice, it will change underneath you after the first response returns. Also it is just annoying to see the spinner and wait.
I think I’d like to have it just change the state, make the request, and report and revert the state if the re is an error. But then I still end up with some weirdness when hammering on the thign a few times. What do you think the best way to handle this UI issue is, assuming I cannot change the service?