Re: [w3c/ServiceWorker] New "setup" lifecycle for service worker (#1576)

In your example the `init` method has side effects that might land half-way through a function, which could cause unexpected bugs. If that's intended, I'd refactor a bit to make it obvious that it's the expected behaviour.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1576#issuecomment-814764238

Received on Wednesday, 7 April 2021 09:29:57 UTC