mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-utils): a literal keeps the value of a key another pattern property reads
Follow-up of the literal-value cleanup (c7709a1a13): `const { picked,
picked: kept } = { picked: secret() }` (or `{ picked, [name]: kept }`) with
only `picked` orphaned lost the property `kept` reads too. A key a pattern
property that stays reads keeps its value, and a staying computed key, which
may read any, keeps the whole literal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cd94c77f4f
commit
9115cf4405
2 changed files with 24 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue