Maggi Trymbill™
Nov 8 · 1 min read

Thank you for a fantastic article Federico Zivolo, really helpful! I’ve got one quick question for you. In your useEffect where you register a service worker for the onUpdate and onWaiting callbacks, you don’t provide a scriptUrl as the first parameter, is that intentional or is there something missing in the example file? Do you have a link to the full implementation as a GitHub repo or a gist somewhere?

Again, thank you for a great article. Been searching all over the place for an elegant solution to a feature like this.

Maggi Trymbill™

Written by

I tend to write about things that bother me, but in general there’s a surplus of things that don’t bother me; they’re just not as fun to write about.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade