mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
579440170b
it was only optional to avoid a breaking change in a minor BREAKING CHANGE: The `currentSnapshot` parameter in `CanMatchFn` and the `canMatch` method of the `CanMatch` interface is now required. While this was already the behavior of the Router at runtime, existing class implementations of `CanMatch` must now include the third argument to satisfy the interface. PR Close #67452