4 ms·
One simple implementation is just to queue up the action without committing it, then "undo" actually just cancels a pending action. The downside of this approac
by ForHackernews 13y ago
One simple implementation is just to queue up the action without committing it, then "undo" actually just cancels a pending action. The downside of this approach is "undo" becomes a limited time only offer.