2 ms·
The thing is that batteries are usually stateless (is there power or not?) whereas if you're handling offline vs online mode you are going to have to sync chang
by firasd 10y ago
The thing is that batteries are usually stateless (is there power or not?) whereas if you're handling offline vs online mode you are going to have to sync changes and that's a mind#!%$. You know the line about the two hard problems in CS being cache invalidation and naming things, well now you're dealing with cache invalidation squared.
(I did make a demo of how using React & Redux can help sync UI state from offline to online but it's not a comprehensive solution https://medium.com/@firasd/interface-from-data-using-react-to-sync-updates-and-offline-activity-across-devices-f672b213701c https://medium.com/@firasd/interface-from-data-using-react-t...)