Skip to content

bug: DataRefreshWrapper drops form state and stacks timers #435

Description

@nanaf6203-bit

Summary

src/components/dashboard/DataRefreshWrapper.tsx calls setTimeout from a useEffect but has no cleanup, and the wrapper's keyed children remount on each refresh, throwing away form state.

Affected area

src/components/dashboard/DataRefreshWrapper.tsx

Steps to reproduce

Click Refresh multiple times quickly → multiple timeout handles stack, and any active form loses state.

Expected behaviour

Cancel timers on next refresh, conditionally remount via specific keys rather than the entire wrapper, and preserve form drafts.

Acceptance criteria

  • Cleanup the active refresh timer.
  • Don't remount children unless necessary.
  • Tests verifying form draft survives refresh.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't working correctlypriority/p2P2 — medium priorityuxUser experience and interaction quality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions