mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
* fix(router): address lane loader regressions * perf(router-core): shave asset-prefix bookkeeping bytes - rename the internal `_dataOnlyAssetEnd` match field to `_assetEnd`: property keys survive minification, so the shorter internal name saves bytes at every site in every bundle - reduce the `_getAssetMatches` guard to a presence check: the field is only ever set on hydration presentation clones that already satisfy the pending/data-only/error-free/not-not-found conditions, and commits clear it (invariant documented at the guard) - clone-then-patch the hydration handoff splice instead of spreading a conditional object per element, and drop the unreachable zero guard in `_getAssetMatches` Measured (gzip, vs PR tip): react-router.full -43 B, vue-router.full -35 B, react-router.minimal -8 B. All unit suites green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * test(router-devtools): preload lazy panel --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
53 lines
1.7 KiB
53 lines
1.7 KiB