Skip to content
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

Add setCatchHandler option for routes #2699

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

Snugug
Copy link
Contributor

@Snugug Snugug commented Dec 11, 2020

Fixes #2318

Added setCatchHandler to Route base class. Will try the route's catch handler first, if it exists, and falls back to default one if it doesn't, or if the route's catch handler has an error.

@jeffposnick jeffposnick self-requested a review December 14, 2020 15:58
@Snugug
Copy link
Contributor Author

Snugug commented Dec 14, 2020

Looks like the Mac suite failed post-run in the cache phase? Re-running to hopefully get that to not fail.

Copy link
Contributor

@jeffposnick jeffposnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the small suggestion.

packages/workbox-routing/src/Router.ts Outdated Show resolved Hide resolved
Co-authored-by: Jeffrey Posnick <jeffy@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Route.setCatchHandler() method
2 participants