Describe the bug
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.
Your Example Website or App
https://s.olid.uk/id/lg40u1dpQkC5mIUmTn_Grw
Steps to Reproduce the Bug or Issue
- 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.
Describe the bug
Two JSX expressions read the same async memo,
gate(). After an update, one displays200while the other still displays100for 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 ordinarygate()read disagreeing with the other visible expression.Your Example Website or App
https://s.olid.uk/id/lg40u1dpQkC5mIUmTn_Grw
Steps to Reproduce the Bug or Issue
false | 100.true | 200and the second showstrue | 100.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 ofgate()at once.Screenshots or Videos
No response
Platform
nextat e44b2e4.Additional context
Verified with compiled JSX and connected DOM in both development and production, including builds of the current
nextruntime and JSX compiler. There are no imperative reads,latest()calls, or loading boundaries in this example.Two controls remove the mismatch:
300to50, so the child resolves before its parents: both rows showtrue | 200during the hold.slowsynchronous by returningvalueinstead ofdelay(...): both rows showfalse | 200after the parent work resolves.