New Route.setCatchHandler() method #2318
Labels
Feature Request
Good First Issue
This would be an ideal issue for a new contributor to take on.
workbox-routing
Library Affected:
workbox-routing
I was thinking that we should add in a
Route
-levelsetCatchHandler()
method, which would behave like the existingRouter.setCatchHandler()
, but instead of being a global to theRouter
instance, it would apply only when there's an exception throw by theHandlerCallback
associated with the specificRoute
.Something like:
This would be post-v5, as it should be backwards-compatible.
The text was updated successfully, but these errors were encountered: