Describe the bug
An action sets an optimistic value and finishes its body after 500ms. The runtime waits for the optimistic value's async derivation to finish before starting the revert: both values first become 1 after one second, then return to 0 after another second.
Your Example Website or App
https://s.olid.uk/id/TCIEZ0gPR5SHBPGWcBaueQ
Steps to Reproduce the Bug or Issue
- Wait for initialization.
- Click Run.
- The action body finishes after 500ms.
- Value and Details become 1 after one second, then return to 0 after another second.
Expected behavior
Attempt the revert when the action's own work finishes. Any observed async work triggered by that revert can delay its commit, but it should not first wait for the obsolete optimistic request to finish.
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Firefox
Additional context
Related to #3331, fixed by #3370. That fix starts correction when a new authoritative source value arrives. Here the authoritative value stays 0 and the action body simply finishes.
Is the remaining wait intentional in this case? My expectation is that reverting discovers which authoritative work is observed, without first completing the optimistic work.
Reproduced on next at 1643d2a and #3425 at 9fa294f, in development and production builds.
Describe the bug
An action sets an optimistic value and finishes its body after 500ms. The runtime waits for the optimistic value's async derivation to finish before starting the revert: both values first become 1 after one second, then return to 0 after another second.
Your Example Website or App
https://s.olid.uk/id/TCIEZ0gPR5SHBPGWcBaueQ
Steps to Reproduce the Bug or Issue
Expected behavior
Attempt the revert when the action's own work finishes. Any observed async work triggered by that revert can delay its commit, but it should not first wait for the obsolete optimistic request to finish.
Screenshots or Videos
No response
Platform
Additional context
Related to #3331, fixed by #3370. That fix starts correction when a new authoritative source value arrives. Here the authoritative value stays 0 and the action body simply finishes.
Is the remaining wait intentional in this case? My expectation is that reverting discovers which authoritative work is observed, without first completing the optimistic work.
Reproduced on next at 1643d2a and #3425 at 9fa294f, in development and production builds.