mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(router-utils): a read or write through an alias inside a forwarding expression is one of its object
Fable's review of order rule v2, finding 1 (cases/wrap.json): a name inside
a conditional's branch, `??`/`||`/`&&`, a sequence's last, `await`, an
assignment's value or a literal read back (`(alias ?? {}).b`, `[alias][0].b`)
reads the object it holds, as `alias.b` does; with `const`, `let` and
destructured aliases. The same climb finds the object a member write
through such an expression writes (`(on ? alias : {}).b = 2`).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
230aada458
commit
c23de7375d
1 changed files with 95 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue