You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[2.0 rc.15] Reading lazy memo in both side of conditional expression causes infinite computation loop #4142
lazy — boolean
When true, defers the initial computation until the value is first read, and opts the memo into autodisposal — once it has no remaining subscribers it is torn down and recomputed from scratch on the next read.
My naive guess is that the memo gets disposed before the conditionally evaluated value subscribes the memo so recomputation occurs.
Fixed by #4164, now merged to next. The playground from this issue fetches once and shows the user. The regression tests are lazy-memo-rebuilt-reader-4142.test.ts (signals) and lazy-memo-loading-loop-4142.spec.tsx (web). Closing.
Activity
chore(size): raise caps for the #4142 lazy-memo release fix
fix(signals): a lazy memo read only through a rebuilt child memo is n…
ryansolid commentedon Oct 19, 2026
Generated by Claude Code