andywer / ideabox

Place to collect techy ideas and get feedback.
1 stars 1 forks source link

Make it easy to write PWAs with React / next.js #7

Open andywer opened 7 years ago

andywer commented 7 years ago

There should be an easy way to turn your React app into a Progressive Webapp. A service worker must be set up, offline first must be the main goal.

Caching the HTTP responses (so we have data without actual server communication) is not hard. The problem is rather "how to handle sudden updates of data when back online in a generic way".

Making the app developer set a callback for manually handling data updates might be an easy solution, but very unelegant. There should be a generic way working with Redux and MobX at least...