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
This shouldn't happen. Once a form is submitted, it shouldn't re-submit if the user tabs away from the app/browser and then tabs back into the app/browser.
The code currently passes the form's requestData to useQuery()'s queryKeys array, but this doesn't consistently solve the problem. Sometimes it works, most of the time it doesn't. No idea why.
Not sure why this happens. The assumption is that the queryKeys will cache the query and prevent a re-render / re-fetch of the Estimate component. This does not work consistently.
useMemo() might solve this. Need to figure out if / where / how.
The text was updated successfully, but these errors were encountered:
mattburnett-repo
changed the title
Tab-away from app then tab-return in browser causes estimate form to resubmit, triggering a new network request.
Tab-away from app then tab-return in browser causes estimate forms to resubmit, triggering a new network request.
Feb 12, 2023
mattburnett-repo
changed the title
Tab-away from app then tab-return in browser causes estimate forms to resubmit, triggering a new network request.
Tab-away from app/browser then tab-return to browser causes estimate forms to resubmit, triggering a new network request.
Feb 13, 2023
This shouldn't happen. Once a form is submitted, it shouldn't re-submit if the user tabs away from the app/browser and then tabs back into the app/browser.
The code currently passes the form's requestData to useQuery()'s queryKeys array, but this doesn't consistently solve the problem. Sometimes it works, most of the time it doesn't. No idea why.
Not sure why this happens. The assumption is that the queryKeys will cache the query and prevent a re-render / re-fetch of the Estimate component. This does not work consistently.
useMemo() might solve this. Need to figure out if / where / how.
The text was updated successfully, but these errors were encountered: