Skip to content

feat: cancel pending form submissions during SPA navigation #59

@adnaan

Description

@adnaan

When a user navigates away while a form submission is in-flight (WebSocket message sent, response pending), the pending response may arrive on the new handler after navigation, causing state confusion.

Current behavior: disconnect() calls formLifecycleManager.reset() (UI cleanup only). Pending server responses are not tracked or cancelled.

Expected behavior: Track form submission message IDs. After cross-handler navigation, ignore responses for old submissions.

Discovered during cross-handler SPA navigation research (PR #58).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions