When confirming responses, the Downloaded tab should refresh once the dialog closes.
Previous code relied on useRouter router.refresh()
This stopped working after a refactor that moved the fetchResponses call to a client side useEffect.
To resolve, added a forceRefresh state to the dependency array of the useEffect. When the Confirm action completes, set a new timestamp with setForceRefresh and it will refetch the responses.
Summary | Résumé
Fixes #4631
When confirming responses, the Downloaded tab should refresh once the dialog closes. Previous code relied on useRouter router.refresh() This stopped working after a refactor that moved the fetchResponses call to a client side useEffect.
To resolve, added a
forceRefresh
state to the dependency array of the useEffect. When the Confirm action completes, set a new timestamp with setForceRefresh and it will refetch the responses.