0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

fix(router-utils): a switch value or case test observes identity

`switch` compares by `===`, so a function used as a `case` label (or as
the switch value) is a sentinel like one compared with `===`: a chunk now
imports it instead of copying it, and an importer of the route file passing
its instance matches the split component's comparison.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-11-09 16:28:15 +01:00
commit 5312a31913
No known key found for this signature in database
4 changed files with 29 additions and 4 deletions