Describe the bug
An optimistic update keeps waiting for an async memo after its last reader is unmounted. The equivalent normal signal update releases immediately.
Your Example Website or App
https://s.olid.uk/id/ivHMtOauSn2E1c4bfvpFDg
Steps to Reproduce the Bug or Issue
- Wait for initialization.
- Click Run.
- Details disappears after 500ms, but Value stays 0.
- Value becomes 1 when the unused request finishes. The action is still pending.
Expected behavior
I would expect the optimistic update to release when nothing observes the pending work anymore, like a normal signal update.
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Firefox
Additional context
Possibly related to #3372, fixed by #3392, which wakes a parked transaction when its pending reader is disposed.
This case eventually completes; it does not lose the update as #3372 did. Is keeping the optimistic lane held after disposal intentional, or should it release here too?
Reproduced on next at 1643d2a and #3425 at 9fa294f.
Describe the bug
An optimistic update keeps waiting for an async memo after its last reader is unmounted. The equivalent normal signal update releases immediately.
Your Example Website or App
https://s.olid.uk/id/ivHMtOauSn2E1c4bfvpFDg
Steps to Reproduce the Bug or Issue
Expected behavior
I would expect the optimistic update to release when nothing observes the pending work anymore, like a normal signal update.
Screenshots or Videos
No response
Platform
Additional context
Possibly related to #3372, fixed by #3392, which wakes a parked transaction when its pending reader is disposed.
This case eventually completes; it does not lose the update as #3372 did. Is keeping the optimistic lane held after disposal intentional, or should it release here too?
Reproduced on next at 1643d2a and #3425 at 9fa294f.