Skip to content

setCatchHandler ​

Function @vite-pwa/workbox-swkit/routing
ts
setCatchHandler(handler: RouteHandler): void

If a Route throws an error while handling a request, this handler will be called and given a chance to provide a response.

Parameters ​

  • handler – A callback function that returns a Promise resulting in a Response.

Released under the MIT License.