I have just upgraded from react 16 to 17 and then followed this tutorial, but I still need to close the tab and open again to see the updates, I really hate PWA's.
Hi @myfairshare
the update does not happen immediately. First you need to load the page, so that it detects the new service worker, to prepare caches and to replace the index.html
After the next reload your website will be updated with the new service worker
Unfortunately there is a big difference and use cases between PWA and Mobile App. And PWA gain much on popularity. I also hate the way the PWA handles the updates, but they will surely change it in future.
I have just upgraded from react 16 to 17 and then followed this tutorial, but I still need to close the tab and open again to see the updates, I really hate PWA's.
Hi @myfairshare the update does not happen immediately. First you need to load the page, so that it detects the new service worker, to prepare caches and to replace the index.html
After the next reload your website will be updated with the new service worker
Ok thanks for the reply mate. I think next time I build a mobile app I will try flutter instead!!
Unfortunately there is a big difference and use cases between PWA and Mobile App. And PWA gain much on popularity. I also hate the way the PWA handles the updates, but they will surely change it in future.
I hope your right, thanks!!