QwikCommunity / pwa

Turn your Qwik Application into an offline compatible PWA
https://pwa-a3b.pages.dev/
90 stars 8 forks source link

Show cached data while loading then new data #17

Open lbensaad opened 1 month ago

lbensaad commented 1 month ago

For API calls, I want the UI to show cached data to the user, then when the cache is updated by the service worker I will update the UI with the new data. I tried workbox-broadcast-update but it did not work for me, any hint on how to use it?