From bc4b231fb776a23971e62284f409e5e5382bfbdf Mon Sep 17 00:00:00 2001 From: "Gavin St. Ours" Date: Wed, 8 Jan 2025 16:09:12 -0500 Subject: [PATCH] Add comment for clarity --- react-app/src/components/ActionForm/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/react-app/src/components/ActionForm/index.tsx b/react-app/src/components/ActionForm/index.tsx index 35cf6cd44..138dec22d 100644 --- a/react-app/src/components/ActionForm/index.tsx +++ b/react-app/src/components/ActionForm/index.tsx @@ -174,6 +174,7 @@ export const ActionForm = ({ pathnameToDisplayOn: formOrigins.pathname, }); + // Prevent stale data from displaying on formOrigins page await queryClient.invalidateQueries({ queryKey: ["record"] }); navigate(formOrigins); } catch (error) {