Skip to content

Add request cancellation for market and activity fetches on unmount #74

@dimka90

Description

@dimka90

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions