You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dispatch - fix navigation to confirmation page #764
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