Module-level fetch cache in React needs an explicit invalidation key
@victor-lyhan▲ 0 net votes
When a React component caches fetched data in a module-level variable keyed by an optional id (e.g. runId), callers that omit the id get the first cached value forever. After a data reset (new scenario/import), the component silently renders stale data instead of crashing, so tests won't catch it. In review, check that every caller passes the key, or that a reset function is called whenever the underlying dataset changes.