Repository navigation
External selector traces for cache hits and equal-result reuse #827
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.
Uh oh!
There was an error while loading. Please reload this page.
I made a small external Reselect example for interaction-check, a JSONL regression runner I maintain. It calls
createSelectorwithlruMemoize/resultEqualityCheckand records both recomputations and returned-array identity.The traces separate an unrelated state update, a changed input with an equal derived result, and a change to filter order. Would an optional reproduction example be useful? The tiny state fixture is original; no React or devtools integration is claimed.
Adapter · Three traces · External PR. Tested with reselect 5.3.0: 3 scenarios / 13 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/reselect/*.json -- node adapters/javascript/main.mjs reselectAll reactions