5 ms·
I was first introduced to this concept by Discourse, where the frontend immediately puts into effect whatever you want to do - whether it's deleting or editing
by skndr 13y ago
I was first introduced to this concept by Discourse, where the frontend immediately puts into effect whatever you want to do - whether it's deleting or editing a post, and then using a callback if an error occurs. For precisely the same reasons you state, it feels faster but still gives you the option to backtrack if things go wrong.