-
Notifications
You must be signed in to change notification settings - Fork 6
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
Tagged source #17
Comments
Thank you for the proposal, and sorry for the slow reply. Can I ask you to tell more on how the tag is different from the id? Especially, what is a use case that the tag can cover, but the id cannot? |
Ah! I had missed And I note that I see the fetch event has many I would mention though routerCallback seems a bit long winded for this specific property, where it doesn't seem like this is really a callback but it is a fetch handler.
This issue is resolved though with this |
A name for |
This is related to full picture, not to current state
A callback style source was suggested here: comment link
With a rebuttal that it wouldn't work with a function reference as the install event scope may no longer be accessible when the route is used: comment link
The reasoning for not having a function reference makes sense as a source, but being able to use either a tag to shortcut re-routing inside the fetch handler, or providing a function name to use as a name for an exported function from a service worker would be helpful.
Tag functionality would be similar to the sync API.
I've also included an alternative where a function source type could be added, but I feel like its over reaching compared to tagging.
Example
Alternatives
Named Export
Mixed Functionality
The text was updated successfully, but these errors were encountered: