Repository navigation
External takeLatest traces with controlled stale responses #2790
PerchAnton
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I made an external Redux Saga example for interaction-check, a JSONL regression runner I maintain. It uses runSaga/stdChannel and a small original worker instead of real timers or network requests.
The traces check that takeLatest cancels the previous worker, a late response cannot produce a result, stopping the root cancels pending work, and a completed worker is not reported as cancelled. Would this be useful as an optional reproduction recipe? Timing and browser behavior remain outside the example.
Adapter · Three traces · External PR. Tested with redux-saga 1.5.1: 3 scenarios / 14 steps pass locally on macOS, Node 24.19.0.
From that checkout, with Python 3.10+ and Node 24.19.0:
npm --prefix adapters/javascript ci --ignore-scripts --no-audit --no-fund python interaction_check.py scenarios/redux-saga/*.json -- node adapters/javascript/main.mjs redux-sagaAll reactions