0
Fork 0
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:
Sheraff 2026-10-30 16:08:33 +01:00
commit 9115cf4405
No known key found for this signature in database
2 changed files with 24 additions and 2 deletions