Type: Performance
Area: Data
Description
Async page hooks currently fire requests without a documented cancellation strategy when components unmount or parameters change quickly.
Problem Statement
Stale responses can race with newer state and waste network resources.
Acceptance Criteria
- Market and activity fetch hooks cancel or ignore stale requests safely on unmount or parameter changes.
- No state updates occur after the relevant component has unmounted.
- The implementation is covered by tests or documented behavior.
Test Cases
- Navigate away quickly during a fetch and verify no warnings or stale updates occur.
- Trigger rapid parameter changes and confirm only the latest response updates the UI.
Description
Async page hooks currently fire requests without a documented cancellation strategy when components unmount or parameters change quickly.
Problem Statement
Stale responses can race with newer state and waste network resources.
Acceptance Criteria
Test Cases