GoogleChrome / GoogleChrome/workbox
Provide way of calling unregisterRoute when using default router
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 880
- Avg merge
- 2h 44m
- Merged PRs (30d)
- 8
Description
Library Affected:
workbox-routing
Browser & Platform:
all browsers
Issue or Feature Request Description:
Router instances have an unregisterRoute method, but, as far as I can tell, if you are using the default Router, there is no way of obtaining the Router instance and hence no way of calling this method.
Would it be possible to either provide access to the workbox-routing.utils.getOrCreateDefaultRouter function or add an unregisterRoute function alongside the existing workbox-routing.registerRoute function that uses the default router?
This is essentially re-opening #2592. This feature would be really handy when testing as currently we have no way to clean up the router.
Contributor guide
Assessment
This issue has not been assessed yet.