4 ms·
> make our UI update immediately in order to reflect user actions, instead of traditionally waiting for the backend's success response So, a user on a slow net
by egeozcan 9y ago
> make our UI update immediately in order to reflect user actions, instead of traditionally waiting for the backend's success response
So, a user on a slow network thinks that the request went through and closes the tab. Boom! You've got yourself the first version of MongoDB on the client side!
- swyx 9y agoiirc this is known as minimongo however it is only used in the Meteorjs world for some reason. anyone else know of similar non Meteor solutions?
- vbezhenar 9y agoYou can prevent closing a tab.
- majewsky 9y agoCan you prevent Alt-F4? Can you prevent Windows Update? Can you prevent a power outage?
- vbezhenar 9y agoEdge allows to prevent Alt-F4. I guess other sane browsers have the same behavior. Power outage is an extremely rare condition (especially in a world of laptops) so I don't think that it's a problem worth solving. I didn't understand that part about Windows update, it never closed my browser.
- dcd0101 9y agoWow. What’s the justification for this?
- lowtolerance 9y agoI’d like to know as well. Preventing users from closing a tab is the kind of user-hostile UX I’d expect from some of the scummier ad networks.
- lowtolerance 9y agoI don’t have any data to support this, but I would think that, if anything, laptops would be much more susceptible to sudden, unexpected power loss than desktops, especially once the battery has some age and can’t keep up with peak power demands.
- ridiculous_fish 9y agoYou can't prevent closing my laptop.
- eagsalazar2 9y agoOptimistically apply but also show indication that it is still being processed by backend until you get confirmation. Best of both worlds.