Skip to content

Commit

Permalink
[Point of contact] Stale form input fields when actuating 'Go Back' b…
Browse files Browse the repository at this point in the history
…utton on Sign-and-Submit (#976)

closes #975 

## Changes
- bugfix(Point of Contact): Form fields no longer stale upon actuating
'Go Back' button on Sign-and-Submit

## How to Test ('Go Back' Button)
- Filling out a value in `Extension`
- Submit
- Verify Phone Extension value in Sign-and-Submit
- Actuate the 'Go Back' button
- Verify value is still the same

## How to Test (Browser's Back Button)
- Test the same but with the browser's Back button
  • Loading branch information
shindigira authored Oct 1, 2024
1 parent 41bb357 commit 725c5bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/useFilingStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const useFilingStatus = (
queryKey: [`fetch-filing`, lei, filingPeriod],
queryFn: async (): Promise<FilingType> =>
fetchFiling(auth, lei, filingPeriod),
refetchOnMount: true,
staleTime: 0,
cacheTime: 0,
});
};

Expand Down

0 comments on commit 725c5bf

Please sign in to comment.