Repository navigation
Idea: portable core-store traces for notifications and reducer replacement #4962
PerchAnton
started this conversation in
Ideas
Replies: 1 comment 4 replies
|
Thanks for sharing this! I'm having a little trouble understanding what you're proposing we do with this. These sound like existing Redux behaviors that we already cover in our own test suite. Is the idea that we'd incorporate your regression runner into Redux's testing infrastructure, or that you'd maintain an external set of tests that we could reference when debugging issues? What would this let us test or reproduce that our existing tests can't? |
4 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
I prepared an external Redux core example for interaction-check, a JSONL regression runner I maintain. It calls
legacy_createStore,combineReducersandapplyMiddlewareto make notification and middleware order inspectable after each action.The traces cover no-op dispatch still notifying,
unsubscribe, andreplaceReducerpreserving existing state while initializing a new slice. Would this be useful as an optional core API reproduction? It is not a recommendation to replace Redux Toolkit in applications.Adapter · Three traces · External PR. Tested with redux 5.0.1: 3 scenarios / 11 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/*.json -- node adapters/javascript/main.mjs reduxAll reactions