NeokingdomDAO / dapp

https://dapp-neokingdom.vercel.app/
0 stars 1 forks source link

Add a way to hard reset the app #58

Closed vrde closed 1 year ago

vrde commented 1 year ago

Problem: I opened my Brave browser and pointed it to https://dapp-neokingdom-staging.vercel.app/. I see an old version of the dapp, and even if I wait it doesn't update. Using the refresh button of the browser (even a hard refresh) doesn't update the dapp. Instead, I have to:

Solution:

What do you think?

vrde commented 1 year ago

OK that was the staging dapp :sweat:, that's why it was not updated, so the problem is not in production.

I remember one user having a similar issue (dapp not updating), would it make anyway sense to add a button to reset the state of the dapp?

vrde commented 1 year ago

The update of the service worker seems to work fine, let's think about this in case we have issues with it.

vrde commented 1 year ago

A contributor had issues with an update recently, we don't know exactly, can be that the service worker didn't update. Anyway in the settings we should have a button to reset the app that deletes cookies, local storage, and unregisters the service worker.