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
Errored stays up after the only reader that threw is disposed (isPending-opened branch) #4373
Found by the async app generator (#4371). Reproduces on next5f60713.
const[s,setS]=createSignal(3);constact=action(function*(v: number){setS(v);yieldnewPromise<void>(r=>(release=r));});render(()=>{constm=createMemo(()=>{if(s()===1)thrownewError("boom");returns();});return(<Erroredfallback={e=>"[ERR]"}><Showwhen={isPending(m)}><span>{m()}</span></Show></Errored>);},el);act(1);// the screen shows <span></span> while the action is in flightrelease();// after the action settles, the screen shows [ERR]
When the action ends, isPending(m) turns false, so the Show branch closes and the <span> reading m() is disposed. The Errored still shows its fallback. A fresh render with s = 1 shows nothing, because nothing on the page reads m().
Expected (Ryan's ruling): the boundary heals when the reader that threw is disposed and nothing else keeps it errored. The screen should be empty, as it is in the fresh render.
Activity
chore(size): re-record #4373 over next @ 40cde2c
fix(signals): a re-armed Loading leaves an outer Errored's readers al…
ryansolid commentedon Oct 29, 2026
Fixed on
nextby #4384 (957f065); it ships in the next RC.Generated by Claude Code
fix(signals): an Errored heals when the last reader that caught its e…