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.0-rc.13 async isPending derivation makes rendered memo values disagree #3766
Two JSX expressions read the same async memo, gate(). After an update, one displays 200 while the other still displays 100 for about three seconds.
The second expression also reads an async derivation of isPending(source). Retaining its previous pending value while the correction waits is understandable, but this also leaves its ordinary gate() read disagreeing with the other visible expression.
Wait for initialization (about three seconds), until both rows show false | 100.
Click Run.
After about 300ms, the first row shows true | 200 and the second shows true | 100.
The different right-hand values remain visible for about three seconds. Both rows eventually show false | 200.
Expected behavior
The two visible reads of the ordinary memo gate() should agree while this update is held or revealed. This does not require the pending boolean to immediately become false: the delayed pending correction can remain held without showing two different values of gate() at once.
Screenshots or Videos
No response
Platform
OS: Linux
Browser: Chromium 151.0.7922.173
Solid: 2.0.0-rc.13; also reproduced with current next at e44b2e4.
Additional context
Verified with compiled JSX and connected DOM in both development and production, including builds of the current next runtime and JSX compiler. There are no imperative reads, latest() calls, or loading boundaries in this example.
Two controls remove the mismatch:
Change the pending-true delay from 300 to 50, so the child resolves before its parents: both rows show true | 200 during the hold.
Make slow synchronous by returning value instead of delay(...): both rows show false | 200 after the parent work resolves.
Retested after #3774, at next1b9ceb6. The linked repro now breaks during initialization: it doesn't mount, so I can't confirm whether the original value disagreement is fixed.
This can be reduced to a memo over isPending(source) read before a second initially async memo:
Expected: false | 100 once the promises resolve. Actual: the paragraph remains unmounted, including after ten seconds. Both promises fulfill; there are no further updates or page errors.
Two controls mount normally:
Read gate() first: `${gate()} | ${pending()}`.
Inline the probe: `${isPending(source)} | ${gate()}`.
Reproduced in development and production using source builds of the runtime and the revision's own JSX compiler. The PR base, 41fdf96, mounts all three variants normally. A raw scheduled createRenderEffect(() => [pending(), gate()], ...) also receives no application callback after both promises settle, so this isn't limited to JSX mounting.
I haven't established whether this has the same underlying cause as the original split, but it blocks retesting that example as written. The memo/direct-probe and read-order controls seem useful for narrowing it down.
A render effect that a lane took over from a held transaction now keeps running as the lane's work while it waits on the lane's flight, so the memo values it renders no longer disagree. @brenelz's mark from #3794 is part of the fix, credited as co-author. The fix also stops a pass that leaves the lane from keeping a hold with nothing behind it.
Activity
GabbeV commentedon Oct 4, 2026
Retested after #3774, at
next1b9ceb6. The linked repro now breaks during initialization: it doesn't mount, so I can't confirm whether the original value disagreement is fixed.This can be reduced to a memo over
isPending(source)read before a second initially async memo:Expected:
false | 100once the promises resolve. Actual: the paragraph remains unmounted, including after ten seconds. Both promises fulfill; there are no further updates or page errors.Two controls mount normally:
gate()first:`${gate()} | ${pending()}`.`${isPending(source)} | ${gate()}`.Reproduced in development and production using source builds of the runtime and the revision's own JSX compiler. The PR base,
41fdf96, mounts all three variants normally. A raw scheduledcreateRenderEffect(() => [pending(), gate()], ...)also receives no application callback after both promises settle, so this isn't limited to JSX mounting.I haven't established whether this has the same underlying cause as the original split, but it blocks retesting that example as written. The memo/direct-probe and read-order controls seem useful for narrowing it down.
fix(signals): a lane's pending leaf re-runs as the lane's work (solid…
fix(signals): L2 lane takeover of held effects (#3766) and optimistic…
ryansolid commentedon Oct 6, 2026