Skip to content

Commit d98b674

Browse files
committed
add adoption strategy
1 parent a6251e2 commit d98b674

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

active-rfcs/0000-router-navigation-failures.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ router.afterEach((to, from, failure) => {
165165

166166
# Alternatives
167167

168-
- Differentiating `next(false)` from navigations that get overriden by more recent navigations by defining another Navigation Failure
168+
- Differentiating `next(false)` from navigations that get overridden by more recent navigations by defining another Navigation Failure
169169

170170
# Adoption strategy
171171

172+
- Expose `NavigationFailureType` in vue-router@3 so that Navigation Failures can be told apart from regular Errors. We could also expose a function `isNavigationFailure` to tell them apart.
172173
- `afterEach` and `onError` are relatively simple to migrate, most of the time they are not used many times either.
173174
- `router.push` doesn't reject when navigation fails anymore. Any code relying on catching an error should await the promise result instead.

0 commit comments

Comments
 (0)