Skip to content

Dispatch - fix navigation to confirmation page #764

Open

Description

@dblatcher

Issue

Users reporting not seeing the confirmation page after sending alerts (this had been incorreclty fed back to us as them not seeing the confirmation modal with the second "confirm send" button owing to a misunderstanding on terminology). We have not been able to reproduce this bug.

Current theory:

  • when the backend returns the success response to the send, the frontend code stores the notification ID in the form state (using the react-form library), then navigates to the success tab page.
  • this page reads the notification ID from the form state and:
    • displays the confirmation if the notification ID is present
    • navigates back to the form page if the notification ID is undefined (this is to account for users navigating to the confirmation page manually, when there is no confirmation to show)

We think what is happening is that the react-form library's setValue function used to store the notifcation ID is not instant/synchronous - so there is a race condition of the value being updated and the page navigating to the confirmation page.
If the app navigates to the confirmation page before the value is updates, the page will navigate back to the form page - from the user perspective, nothing happened

Solution

Do not use the form state to store the confirmation - persist it using regular react state (another context provider)
If necessary, remove the "redirect back to form page if no notification" logic on the confirmation page.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. linked a pull request that will close this issuefix confirmation navigation redirect #765on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions