Skip to content

Commit

Permalink
Fix cached application data bug (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
zgong-gov authored Sep 9, 2024
1 parent 318996f commit 86034f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/features/permits/hooks/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const useApplicationDetailsQuery = (
refetchOnMount: "always", // always fetch when component is mounted (ApplicationDashboard page)
refetchOnWindowFocus: false, // prevent unnecessary multiple queries on page showing up in foreground
enabled: shouldEnableQuery, // does not perform the query at all if permit id is invalid
gcTime: 0, // DO NOT cache the application data as application form/review pages always need latest data
});

useEffect(() => {
Expand Down

0 comments on commit 86034f8

Please sign in to comment.