Skip to content

Commit

Permalink
Add comment for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
charmcitygavin committed Jan 8, 2025
1 parent f495e9f commit bc4b231
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react-app/src/components/ActionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export const ActionForm = <Schema extends SchemaWithEnforcableProps>({
pathnameToDisplayOn: formOrigins.pathname,
});

// Prevent stale data from displaying on formOrigins page
await queryClient.invalidateQueries({ queryKey: ["record"] });
navigate(formOrigins);
} catch (error) {
Expand Down

0 comments on commit bc4b231

Please sign in to comment.