You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(router-core): router updateMatch can skip matches if it found a match (#4828)
`updateMatch` can trigger some heavy synchronous work (it updates the
store, which in turn, will re-run a bunch of things), so it's nice if
itself can avoid doing unnecessary work.
- it doesn't need to return anything, the return value is not used
- it doesn't need to search through the 3 arrays of matches if it found
a result in the 1st or 2nd.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
0 commit comments