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

refactor(router-utils): purity only for a target's effects, built when asked (phase 3b)

No compile asks purity any more: the per-compile purity
(`ModuleAnalysis.purity` with the compile's builder chains, the `env`
option, `buildUnits` recording `const` builders) and the
`isPureExpression` export go. `effects()` keeps its own contexts, the
module's statements' and the recognizer's chain factories' per
environment, now built when a module is first asked about as a target
(`purityForEffects`), not in every constructor.

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