Commit cb0b692
authored
fix(router-core): reduce maskedLocation builds (#5081)
As highlighted by #5062 when using a mask, the location is being built
multiple times.
While we need to build the next path as well as the mask, the mask is
being built twice. this PR fixes that by using the first build of the
mask as the maskedLocation for the next path.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Optimized routing logic to avoid redundant work when applying masked
destinations, reducing unnecessary computation during navigation. No
changes to behavior or public APIs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent f158256 commit cb0b692
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1620 | 1620 | | |
1621 | 1621 | | |
1622 | 1622 | | |
1623 | | - | |
1624 | | - | |
| 1623 | + | |
1625 | 1624 | | |
1626 | 1625 | | |
1627 | 1626 | | |
| |||
0 commit comments