Skip to content

Provide way of calling unregisterRoute when using default router #3419

@ymor

Description

@ymor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions