-
Notifications
You must be signed in to change notification settings - Fork 6
Install event usage #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for the comment,
The differences are:
I believe the capability of both approaches are the same, but I believe this proposal is easier to implement and easier for developers to understand the current rules. And yes, adding them to the install event existed since your idea, I will update my proposal to clarify that. (I noticed that I forgot to update the examples to the new syntax. Let me do that soon.)
During the install event handler, which should be the same timing with your proposal. |
That all sounds good to me! I got confused because it said "Unlike Jake’s proposal…" then described something pretty much the same as my proposal 😄 Making the router a single call is ok, it just might make error handling more difficult, since it's harder to tell which of your (eg) 20 routes contained the error. |
There is a discussion on allowing the registration called multiple times in w3c/ServiceWorker#1373 (comment). Let me continue the discussion there. |
I don't understand how this is different to my proposal, which also put the API on the install event, and:
In your proposal, when are the routes set?
The text was updated successfully, but these errors were encountered: