Skip to content

[Frontend] useIncomingStreams.ts refetch interval is hardcoded and cannot be disabled for tests #1040

Description

@grantfox-oss

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

useIncomingStreams.ts hardcodes its react-query refetchInterval, which makes component tests that mount the hook prone to timer leaks unless every test manually mocks timers.

Acceptance criteria

  • Accept a refetchInterval override via the hook's options for testability
  • Default to the current production interval when not overridden

Files to touch

  • frontend/src/hooks/useIncomingStreams.ts

Out of scope

Does not change the production polling cadence.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestfrontendFrontend related tasksgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions